Spotter-VM/00-install.sh

41 lines
741 B
Bash
Raw Normal View History

#!/bin/sh
set -e
# For production builds change to DEBUG=0 or comment the line entirely
export DEBUG=1
2018-10-25 22:22:36 +02:00
cd $(realpath $(dirname "${0}"))
# Install shared packages and perform OS customization
2018-10-25 22:22:36 +02:00
./basic.sh
./basic-runtimes.sh
# 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
# 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