#!/bin/sh

# For production builds change to DEBUG=0 or comment the line entirely
export DEBUG=1

SOURCE_DIR=$(realpath $(dirname "${0}"))

# Install shared packages and perform OS customization
${SOURCE_DIR}/basic.sh

# Install applications
${SOURCE_DIR}/ckan.sh
# ${SOURCE_DIR}/ccleanup.sh
# ${SOURCE_DIR}/cts.sh
${SOURCE_DIR}/gnuhealth.sh
${SOURCE_DIR}/kanboard.sh
${SOURCE_DIR}/mifosx.sh
${SOURCE_DIR}/motech.sh
${SOURCE_DIR}/odkbuild.sh
${SOURCE_DIR}/odk.sh
${SOURCE_DIR}/omk.sh
${SOURCE_DIR}/pandora.sh
${SOURCE_DIR}/sahana.sh
${SOURCE_DIR}/sambro.sh
${SOURCE_DIR}/seeddms.sh
${SOURCE_DIR}/sigmah.sh
${SOURCE_DIR}/ushahidi.sh

# Perform cleanup only if DEBUG environment variable is not set
if [ ${DEBUG:-0} -eq 0 ]; then
    ${SOURCE_DIR}/zz-cleanup.sh
fi
