diff --git a/activemq/install.sh b/activemq/install.sh index e86b9bb..0aaa4b3 100755 --- a/activemq/install.sh +++ b/activemq/install.sh @@ -10,3 +10,5 @@ chown -R 61616:61616 /srv/activemq/data # Create service cp etc/init.d/activemq /etc/init.d/activemq rc-update -u + +exit 0 diff --git a/activemq/uninstall.sh b/activemq/uninstall.sh index 4f48056..9fa7832 100755 --- a/activemq/uninstall.sh +++ b/activemq/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/activemq rc-update -u + +exit 0 diff --git a/ckan-datapusher/install.sh b/ckan-datapusher/install.sh index 194f062..860e962 100755 --- a/ckan-datapusher/install.sh +++ b/ckan-datapusher/install.sh @@ -15,3 +15,5 @@ rc-update -u # Install config update script cp srv/ckan-datapusher/update-conf.sh /srv/ckan-datapusher/update-conf.sh + +exit 0 diff --git a/ckan-datapusher/uninstall.sh b/ckan-datapusher/uninstall.sh index 8f2de9e..c549b47 100755 --- a/ckan-datapusher/uninstall.sh +++ b/ckan-datapusher/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/ckan-datapusher rc-update -u + +exit 0 diff --git a/ckan/install.sh b/ckan/install.sh index 6ad8076..f63a86c 100755 --- a/ckan/install.sh +++ b/ckan/install.sh @@ -62,3 +62,5 @@ cp srv/ckan/update-conf.sh /srv/ckan/update-conf.sh [ ! -z ${STOP_POSTGRES} ] && service postgres stop [ ! -z ${STOP_REDIS} ] && service redis stop [ ! -z ${STOP_SOLR} ] && service solr stop + +exit 0 diff --git a/ckan/uninstall.sh b/ckan/uninstall.sh index 3ba6a65..a3ab74d 100755 --- a/ckan/uninstall.sh +++ b/ckan/uninstall.sh @@ -23,3 +23,5 @@ lxc-attach redis -- redis-cli -n 0 flushdb [ -e /run/openrc/started/solr ] && service solr stop && START_SOLR=1 rm -rf /srv/solr/data/ckan [ ! -z ${START_SOLR} ] && service solr start + +exit 0 diff --git a/crisiscleanup/install.sh b/crisiscleanup/install.sh index 0412161..88bab13 100755 --- a/crisiscleanup/install.sh +++ b/crisiscleanup/install.sh @@ -39,3 +39,5 @@ cp srv/crisiscleanup/update-conf.sh /srv/crisiscleanup/update-conf.sh # Stop services required for setup [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/crisiscleanup/uninstall.sh b/crisiscleanup/uninstall.sh index 8e60347..19c990a 100755 --- a/crisiscleanup/uninstall.sh +++ b/crisiscleanup/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE crisiscleanup; DROP ROLE crisiscleanup;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/cts/install.sh b/cts/install.sh index adb14ea..47110d5 100755 --- a/cts/install.sh +++ b/cts/install.sh @@ -44,3 +44,5 @@ cp srv/cts/update-conf.sh /srv/cts/update-conf.sh # Stop services required for setup [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/cts/uninstall.sh b/cts/uninstall.sh index 1ffb9a7..5475ba9 100755 --- a/cts/uninstall.sh +++ b/cts/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE cts; DROP ROLE cts;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/frontlinesms/install.sh b/frontlinesms/install.sh index e89022b..cfde77b 100755 --- a/frontlinesms/install.sh +++ b/frontlinesms/install.sh @@ -16,3 +16,5 @@ vmmgr update-login frontlinesms "${FRONTLINESMS_ADMIN_USER}" "${FRONTLINESMS_ADM # Install service cp etc/init.d/frontlinesms /etc/init.d/frontlinesms rc-update -u + +exit 0 diff --git a/frontlinesms/uninstall.sh b/frontlinesms/uninstall.sh index cee36b1..3f7b0f0 100755 --- a/frontlinesms/uninstall.sh +++ b/frontlinesms/uninstall.sh @@ -5,3 +5,5 @@ set -ev rc-update del frontlinesms || true rm -f /etc/init.d/frontlinesms rc-update -u + +exit 0 diff --git a/gnuhealth/install.sh b/gnuhealth/install.sh index 45c67d8..16004b7 100755 --- a/gnuhealth/install.sh +++ b/gnuhealth/install.sh @@ -36,3 +36,5 @@ cp srv/gnuhealth/update-conf.sh /srv/gnuhealth/update-conf.sh # Stop services required for setup [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/gnuhealth/uninstall.sh b/gnuhealth/uninstall.sh index eb16fc3..5655cd8 100755 --- a/gnuhealth/uninstall.sh +++ b/gnuhealth/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE gnuhealth; DROP DATABASE gnuhealth_demo; DROP ROLE gnuhealth;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/kanboard/install.sh b/kanboard/install.sh index f9b51b8..2cf9f70 100755 --- a/kanboard/install.sh +++ b/kanboard/install.sh @@ -33,3 +33,5 @@ cp srv/kanboard/update-conf.sh /srv/kanboard/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/kanboard/uninstall.sh b/kanboard/uninstall.sh index 88d5cd9..c99ccb9 100755 --- a/kanboard/uninstall.sh +++ b/kanboard/uninstall.sh @@ -13,3 +13,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE kanboard; DROP ROLE kanboard;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/mariadb/install.sh b/mariadb/install.sh index fef5b42..673902a 100755 --- a/mariadb/install.sh +++ b/mariadb/install.sh @@ -24,3 +24,5 @@ rc-update -u service mariadb start cat adminpwd.sql | lxc-attach mariadb -- mysql service mariadb stop + +exit 0 diff --git a/mariadb/uninstall.sh b/mariadb/uninstall.sh index 2cda801..3b3699f 100755 --- a/mariadb/uninstall.sh +++ b/mariadb/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/mariadb rc-update -u + +exit 0 diff --git a/mifosx/install.sh b/mifosx/install.sh index f141b37..3a8b40f 100755 --- a/mifosx/install.sh +++ b/mifosx/install.sh @@ -46,3 +46,5 @@ cp srv/mifosx/update-conf.sh /srv/mifosx/update-conf.sh # Stop services required for setup [ ! -z ${STOP_MARIADB} ] && service mariadb stop + +exit 0 diff --git a/mifosx/uninstall.sh b/mifosx/uninstall.sh index a2c2c52..8cbf94e 100755 --- a/mifosx/uninstall.sh +++ b/mifosx/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1 echo 'DROP DATABASE mifosplatform-tenants; DROP DATABASE mifostenant-default; DROP USER mifosx;' | lxc-attach mariadb -- mysql [ ! -z ${STOP_MARIADB} ] && service mariadb stop + +exit 0 diff --git a/motech/install.sh b/motech/install.sh index 48a370a..889cd8a 100755 --- a/motech/install.sh +++ b/motech/install.sh @@ -43,3 +43,5 @@ cp srv/motech/update-conf.sh /srv/motech/update-conf.sh # Stop services required for build [ ! -z ${STOP_ACTIVEMQ} ] && service activemq stop [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/motech/uninstall.sh b/motech/uninstall.sh index 4755fb7..96017ca 100755 --- a/motech/uninstall.sh +++ b/motech/uninstall.sh @@ -12,3 +12,5 @@ echo 'DROP DATABASE motech; DROP DATABASE motechdata; DROP DATABASE motechquartz [ ! -z ${STOP_POSTGRES} ] && service postgres stop # TODO: Clear ActiveMQ config + +exit 0 diff --git a/opendatakit-build/install.sh b/opendatakit-build/install.sh index 6f01e3c..1f00f13 100755 --- a/opendatakit-build/install.sh +++ b/opendatakit-build/install.sh @@ -22,3 +22,5 @@ rc-update -u # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/opendatakit-build/uninstall.sh b/opendatakit-build/uninstall.sh index 6d3998e..5488f41 100755 --- a/opendatakit-build/uninstall.sh +++ b/opendatakit-build/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE opendatakit-build; DROP ROLE opendatakit-build;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/opendatakit/install.sh b/opendatakit/install.sh index 7af0654..195f3a6 100755 --- a/opendatakit/install.sh +++ b/opendatakit/install.sh @@ -43,3 +43,5 @@ cp srv/opendatakit/update-conf.sh /srv/opendatakit/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/opendatakit/uninstall.sh b/opendatakit/uninstall.sh index 1e9313b..c6dea64 100755 --- a/opendatakit/uninstall.sh +++ b/opendatakit/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE opendatakit; DROP ROLE opendatakit;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/openmapkit/install.sh b/openmapkit/install.sh index 48724c9..be8c273 100755 --- a/openmapkit/install.sh +++ b/openmapkit/install.sh @@ -15,3 +15,5 @@ vmmgr update-login openmapkit "${OPENMAPKIT_ADMIN_USER}" "${OPENMAPKIT_ADMIN_PWD # Install service cp etc/init.d/openmapkit /etc/init.d/openmapkit rc-update -u + +exit 0 diff --git a/openmapkit/uninstall.sh b/openmapkit/uninstall.sh index fc2c281..9bb73da 100755 --- a/openmapkit/uninstall.sh +++ b/openmapkit/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE openmapkit; DROP ROLE openmapkit;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/pandora/install.sh b/pandora/install.sh index eba9e4d..e540977 100755 --- a/pandora/install.sh +++ b/pandora/install.sh @@ -59,3 +59,5 @@ cp srv/pandora/update-conf.sh /srv/pandora/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop [ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop + +exit 0 diff --git a/pandora/uninstall.sh b/pandora/uninstall.sh index d72eefb..59f3475 100755 --- a/pandora/uninstall.sh +++ b/pandora/uninstall.sh @@ -16,3 +16,5 @@ echo 'DROP DATABASE pandora; DROP ROLE pandora;' | lxc-attach -u 5432 -g 5432 po lxc-attach rabbitmq -- rabbitmqctl delete_vhost /pandora lxc-attach rabbitmq -- rabbitmqctl delete_user pandora [ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop + +exit 0 diff --git a/postgres/install.sh b/postgres/install.sh index 8a47d8d..461c0b1 100755 --- a/postgres/install.sh +++ b/postgres/install.sh @@ -22,3 +22,5 @@ fi # Install service cp etc/init.d/postgres /etc/init.d/postgres rc-update -u + +exit 0 diff --git a/postgres/uninstall.sh b/postgres/uninstall.sh index 7bed8f9..e8ae29b 100755 --- a/postgres/uninstall.sh +++ b/postgres/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/postgres rc-update -u + +exit 0 diff --git a/rabbitmq/install.sh b/rabbitmq/install.sh index a06ef80..35427ef 100755 --- a/rabbitmq/install.sh +++ b/rabbitmq/install.sh @@ -10,3 +10,5 @@ chown 5672:5672 /srv/rabbitmq/data # Install service cp etc/init.d/rabbitmq /etc/init.d/rabbitmq rc-update -u + +exit 0 diff --git a/rabbitmq/uninstall.sh b/rabbitmq/uninstall.sh index 9b3328b..f4e6f62 100755 --- a/rabbitmq/uninstall.sh +++ b/rabbitmq/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/rabbitmq rc-update -u + +exit 0 diff --git a/redis/install.sh b/redis/install.sh index ec465e2..452b62a 100755 --- a/redis/install.sh +++ b/redis/install.sh @@ -11,3 +11,5 @@ chown -R 6379:6379 /srv/redis/data # Install service cp etc/init.d/redis /etc/init.d/redis rc-update -u + +exit 0 diff --git a/redis/uninstall.sh b/redis/uninstall.sh index ee85d68..2e9054d 100755 --- a/redis/uninstall.sh +++ b/redis/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/redis rc-update -u + +exit 0 diff --git a/sahana-demo/install.sh b/sahana-demo/install.sh index dcd8b82..ad6e9f2 100755 --- a/sahana-demo/install.sh +++ b/sahana-demo/install.sh @@ -42,3 +42,5 @@ cp srv/sahana-demo/update-conf.sh /srv/sahana-demo/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sahana-demo/uninstall.sh b/sahana-demo/uninstall.sh index 7a9892d..9c70ccd 100755 --- a/sahana-demo/uninstall.sh +++ b/sahana-demo/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE sahanademo; DROP ROLE sahanademo;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sahana/install.sh b/sahana/install.sh index df7cbe4..158309a 100755 --- a/sahana/install.sh +++ b/sahana/install.sh @@ -47,3 +47,5 @@ cp srv/sahana/update-conf.sh /srv/sahana/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sahana/uninstall.sh b/sahana/uninstall.sh index 1fc3207..2e281e4 100755 --- a/sahana/uninstall.sh +++ b/sahana/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE sahana; DROP ROLE sahana;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sambro/install.sh b/sambro/install.sh index d70d890..b79181d 100755 --- a/sambro/install.sh +++ b/sambro/install.sh @@ -47,3 +47,5 @@ cp srv/sambro/update-conf.sh /srv/sambro/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sambro/uninstall.sh b/sambro/uninstall.sh index 66e396b..ffcd3fc 100755 --- a/sambro/uninstall.sh +++ b/sambro/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE sambro; DROP ROLE sambro;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/seeddms/install.sh b/seeddms/install.sh index bedbd8f..aefcaca 100755 --- a/seeddms/install.sh +++ b/seeddms/install.sh @@ -39,3 +39,5 @@ cp srv/seeddms/update-conf.sh /srv/seeddms/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/seeddms/uninstall.sh b/seeddms/uninstall.sh index c9092e5..b4fa1c2 100755 --- a/seeddms/uninstall.sh +++ b/seeddms/uninstall.sh @@ -13,3 +13,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE seeddms; DROP ROLE seeddms;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sigmah/install.sh b/sigmah/install.sh index f92c7b1..5b56513 100755 --- a/sigmah/install.sh +++ b/sigmah/install.sh @@ -46,3 +46,5 @@ cp srv/sigmah/update-conf.sh /srv/sigmah/update-conf.sh # Stop services required for build [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/sigmah/uninstall.sh b/sigmah/uninstall.sh index 02c90b6..ada1474 100755 --- a/sigmah/uninstall.sh +++ b/sigmah/uninstall.sh @@ -10,3 +10,5 @@ rc-update -u [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 echo 'DROP DATABASE sigmah; DROP ROLE sigmah;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop + +exit 0 diff --git a/solr/install.sh b/solr/install.sh index c19578a..2380fa3 100755 --- a/solr/install.sh +++ b/solr/install.sh @@ -11,3 +11,5 @@ chown -R 8983:8983 /srv/solr/data # Install service cp etc/init.d/solr /etc/init.d/solr rc-update -u + +exit 0 diff --git a/solr/uninstall.sh b/solr/uninstall.sh index 8582c8f..c852993 100755 --- a/solr/uninstall.sh +++ b/solr/uninstall.sh @@ -4,3 +4,5 @@ set -ev # Remove service rm -f /etc/init.d/solr rc-update -u + +exit 0 diff --git a/ushahidi/install.sh b/ushahidi/install.sh index 1390bb0..da4d0c4 100755 --- a/ushahidi/install.sh +++ b/ushahidi/install.sh @@ -38,3 +38,5 @@ cp srv/ushahidi/update-conf.sh /srv/ushahidi/update-conf.sh # Stop services required for build [ ! -z ${STOP_MARIADB} ] && service mariadb stop + +exit 0 diff --git a/ushahidi/uninstall.sh b/ushahidi/uninstall.sh index a22080d..0e2f92a 100755 --- a/ushahidi/uninstall.sh +++ b/ushahidi/uninstall.sh @@ -13,3 +13,5 @@ rc-update -u [ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1 echo 'DROP DATABASE ushahidi; DROP USER ushahidi;' | lxc-attach mariadb -- mysql [ ! -z ${STOP_MARIADB} ] && service mariadb stop + +exit 0