2017-12-19 19:22:36 +01:00
|
|
|
#!/bin/sh
|
2018-07-15 21:55:35 +02:00
|
|
|
set -e
|
2017-09-26 12:37:27 +02:00
|
|
|
|
2017-09-26 12:52:05 +02:00
|
|
|
# For production builds change to DEBUG=0 or comment the line entirely
|
2017-09-26 12:37:27 +02:00
|
|
|
export DEBUG=1
|
2017-09-26 12:52:05 +02:00
|
|
|
|
2017-09-26 12:37:27 +02:00
|
|
|
SOURCE_DIR=$(realpath $(dirname "${0}"))
|
|
|
|
|
2017-11-29 20:53:38 +01:00
|
|
|
# Install shared packages and perform OS customization
|
2017-12-19 19:22:36 +01:00
|
|
|
${SOURCE_DIR}/basic.sh
|
2018-04-30 23:13:11 +02:00
|
|
|
${SOURCE_DIR}/basic-runtimes.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
|
|
|
|
# Install applications
|
|
|
|
${SOURCE_DIR}/ckan.sh
|
2018-04-21 22:30:25 +02:00
|
|
|
# ${SOURCE_DIR}/crisiscleanup.sh
|
2017-12-02 01:16:14 +01:00
|
|
|
# ${SOURCE_DIR}/cts.sh
|
2018-04-21 22:43:57 +02:00
|
|
|
${SOURCE_DIR}/frontlinesms.sh
|
2017-12-02 01:16:14 +01:00
|
|
|
${SOURCE_DIR}/gnuhealth.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
${SOURCE_DIR}/kanboard.sh
|
2017-12-08 20:32:06 +01:00
|
|
|
${SOURCE_DIR}/mifosx.sh
|
|
|
|
${SOURCE_DIR}/motech.sh
|
2018-04-21 22:57:56 +02:00
|
|
|
${SOURCE_DIR}/opendatakit-build.sh
|
|
|
|
${SOURCE_DIR}/opendatakit.sh
|
2018-04-21 23:10:55 +02:00
|
|
|
${SOURCE_DIR}/openmapkit.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
${SOURCE_DIR}/pandora.sh
|
|
|
|
${SOURCE_DIR}/sahana.sh
|
2018-08-17 15:33:59 +02:00
|
|
|
${SOURCE_DIR}/sahana-demo.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
${SOURCE_DIR}/sambro.sh
|
|
|
|
${SOURCE_DIR}/seeddms.sh
|
2017-12-04 21:08:04 +01:00
|
|
|
${SOURCE_DIR}/sigmah.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
${SOURCE_DIR}/ushahidi.sh
|
2017-09-26 12:52:05 +02:00
|
|
|
|
2018-09-02 20:59:48 +02:00
|
|
|
# Perform cleanup only if DEBUG mode is not set
|
|
|
|
[ ${DEBUG:-0} -eq 1 ] && exit 0
|
|
|
|
# Clean package cache
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
# Remove root settings
|
|
|
|
find /root -mindepth 1 -maxdepth 1 | xargs rm -rf
|
|
|
|
# Change root password
|
|
|
|
passwd
|