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
|
|
|
|
2018-10-25 22:22:36 +02:00
|
|
|
cd $(realpath $(dirname "${0}"))
|
2017-09-26 12:37:27 +02:00
|
|
|
|
2017-11-29 20:53:38 +01:00
|
|
|
# Install shared packages and perform OS customization
|
2018-10-25 22:22:36 +02:00
|
|
|
./basic.sh
|
|
|
|
./basic-runtimes.sh
|
2017-11-29 20:53:38 +01:00
|
|
|
|
|
|
|
# Install applications
|
2018-10-25 22:22:36 +02:00
|
|
|
./ckan.sh
|
|
|
|
# ./crisiscleanup.sh
|
|
|
|
# ./cts.sh
|
|
|
|
./frontlinesms.sh
|
|
|
|
./gnuhealth.sh
|
|
|
|
./kanboard.sh
|
|
|
|
./mifosx.sh
|
|
|
|
./motech.sh
|
|
|
|
./opendatakit-build.sh
|
|
|
|
./opendatakit.sh
|
|
|
|
./openmapkit.sh
|
|
|
|
./pandora.sh
|
|
|
|
./sahana.sh
|
|
|
|
./sahana-demo.sh
|
|
|
|
./sambro.sh
|
|
|
|
./seeddms.sh
|
|
|
|
./sigmah.sh
|
|
|
|
./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
|