Add exit code to install scripts
This commit is contained in:
parent
25689d6345
commit
7bca441acd
@ -10,3 +10,5 @@ chown -R 61616:61616 /srv/activemq/data
|
|||||||
# Create service
|
# Create service
|
||||||
cp etc/init.d/activemq /etc/init.d/activemq
|
cp etc/init.d/activemq /etc/init.d/activemq
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/activemq
|
rm -f /etc/init.d/activemq
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -15,3 +15,5 @@ rc-update -u
|
|||||||
|
|
||||||
# Install config update script
|
# Install config update script
|
||||||
cp srv/ckan-datapusher/update-conf.sh /srv/ckan-datapusher/update-conf.sh
|
cp srv/ckan-datapusher/update-conf.sh /srv/ckan-datapusher/update-conf.sh
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/ckan-datapusher
|
rm -f /etc/init.d/ckan-datapusher
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -62,3 +62,5 @@ cp srv/ckan/update-conf.sh /srv/ckan/update-conf.sh
|
|||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
[ ! -z ${STOP_REDIS} ] && service redis stop
|
[ ! -z ${STOP_REDIS} ] && service redis stop
|
||||||
[ ! -z ${STOP_SOLR} ] && service solr stop
|
[ ! -z ${STOP_SOLR} ] && service solr stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -23,3 +23,5 @@ lxc-attach redis -- redis-cli -n 0 flushdb
|
|||||||
[ -e /run/openrc/started/solr ] && service solr stop && START_SOLR=1
|
[ -e /run/openrc/started/solr ] && service solr stop && START_SOLR=1
|
||||||
rm -rf /srv/solr/data/ckan
|
rm -rf /srv/solr/data/ckan
|
||||||
[ ! -z ${START_SOLR} ] && service solr start
|
[ ! -z ${START_SOLR} ] && service solr start
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -39,3 +39,5 @@ cp srv/crisiscleanup/update-conf.sh /srv/crisiscleanup/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for setup
|
# Stop services required for setup
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE crisiscleanup; DROP ROLE crisiscleanup;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -44,3 +44,5 @@ cp srv/cts/update-conf.sh /srv/cts/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for setup
|
# Stop services required for setup
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE cts; DROP ROLE cts;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -16,3 +16,5 @@ vmmgr update-login frontlinesms "${FRONTLINESMS_ADMIN_USER}" "${FRONTLINESMS_ADM
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/frontlinesms /etc/init.d/frontlinesms
|
cp etc/init.d/frontlinesms /etc/init.d/frontlinesms
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -5,3 +5,5 @@ set -ev
|
|||||||
rc-update del frontlinesms || true
|
rc-update del frontlinesms || true
|
||||||
rm -f /etc/init.d/frontlinesms
|
rm -f /etc/init.d/frontlinesms
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -36,3 +36,5 @@ cp srv/gnuhealth/update-conf.sh /srv/gnuhealth/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for setup
|
# Stop services required for setup
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
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
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -33,3 +33,5 @@ cp srv/kanboard/update-conf.sh /srv/kanboard/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -13,3 +13,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE kanboard; DROP ROLE kanboard;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -24,3 +24,5 @@ rc-update -u
|
|||||||
service mariadb start
|
service mariadb start
|
||||||
cat adminpwd.sql | lxc-attach mariadb -- mysql
|
cat adminpwd.sql | lxc-attach mariadb -- mysql
|
||||||
service mariadb stop
|
service mariadb stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/mariadb
|
rm -f /etc/init.d/mariadb
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -46,3 +46,5 @@ cp srv/mifosx/update-conf.sh /srv/mifosx/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for setup
|
# Stop services required for setup
|
||||||
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
[ ! -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
|
echo 'DROP DATABASE mifosplatform-tenants; DROP DATABASE mifostenant-default; DROP USER mifosx;' | lxc-attach mariadb -- mysql
|
||||||
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -43,3 +43,5 @@ cp srv/motech/update-conf.sh /srv/motech/update-conf.sh
|
|||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_ACTIVEMQ} ] && service activemq stop
|
[ ! -z ${STOP_ACTIVEMQ} ] && service activemq stop
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -12,3 +12,5 @@ echo 'DROP DATABASE motech; DROP DATABASE motechdata; DROP DATABASE motechquartz
|
|||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
# TODO: Clear ActiveMQ config
|
# TODO: Clear ActiveMQ config
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -22,3 +22,5 @@ rc-update -u
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE opendatakit-build; DROP ROLE opendatakit-build;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -43,3 +43,5 @@ cp srv/opendatakit/update-conf.sh /srv/opendatakit/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE opendatakit; DROP ROLE opendatakit;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -15,3 +15,5 @@ vmmgr update-login openmapkit "${OPENMAPKIT_ADMIN_USER}" "${OPENMAPKIT_ADMIN_PWD
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/openmapkit /etc/init.d/openmapkit
|
cp etc/init.d/openmapkit /etc/init.d/openmapkit
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE openmapkit; DROP ROLE openmapkit;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -59,3 +59,5 @@ cp srv/pandora/update-conf.sh /srv/pandora/update-conf.sh
|
|||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -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_vhost /pandora
|
||||||
lxc-attach rabbitmq -- rabbitmqctl delete_user pandora
|
lxc-attach rabbitmq -- rabbitmqctl delete_user pandora
|
||||||
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
[ ! -z ${STOP_RABBITMQ} ] && service rabbitmq stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -22,3 +22,5 @@ fi
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/postgres /etc/init.d/postgres
|
cp etc/init.d/postgres /etc/init.d/postgres
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/postgres
|
rm -f /etc/init.d/postgres
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ chown 5672:5672 /srv/rabbitmq/data
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/rabbitmq /etc/init.d/rabbitmq
|
cp etc/init.d/rabbitmq /etc/init.d/rabbitmq
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/rabbitmq
|
rm -f /etc/init.d/rabbitmq
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -11,3 +11,5 @@ chown -R 6379:6379 /srv/redis/data
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/redis /etc/init.d/redis
|
cp etc/init.d/redis /etc/init.d/redis
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/redis
|
rm -f /etc/init.d/redis
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -42,3 +42,5 @@ cp srv/sahana-demo/update-conf.sh /srv/sahana-demo/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE sahanademo; DROP ROLE sahanademo;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -47,3 +47,5 @@ cp srv/sahana/update-conf.sh /srv/sahana/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE sahana; DROP ROLE sahana;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -47,3 +47,5 @@ cp srv/sambro/update-conf.sh /srv/sambro/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE sambro; DROP ROLE sambro;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -39,3 +39,5 @@ cp srv/seeddms/update-conf.sh /srv/seeddms/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -13,3 +13,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE seeddms; DROP ROLE seeddms;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -46,3 +46,5 @@ cp srv/sigmah/update-conf.sh /srv/sigmah/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -10,3 +10,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
echo 'DROP DATABASE sigmah; DROP ROLE sigmah;' | lxc-attach -u 5432 -g 5432 postgres -- psql
|
||||||
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -11,3 +11,5 @@ chown -R 8983:8983 /srv/solr/data
|
|||||||
# Install service
|
# Install service
|
||||||
cp etc/init.d/solr /etc/init.d/solr
|
cp etc/init.d/solr /etc/init.d/solr
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -4,3 +4,5 @@ set -ev
|
|||||||
# Remove service
|
# Remove service
|
||||||
rm -f /etc/init.d/solr
|
rm -f /etc/init.d/solr
|
||||||
rc-update -u
|
rc-update -u
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -38,3 +38,5 @@ cp srv/ushahidi/update-conf.sh /srv/ushahidi/update-conf.sh
|
|||||||
|
|
||||||
# Stop services required for build
|
# Stop services required for build
|
||||||
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -13,3 +13,5 @@ rc-update -u
|
|||||||
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
||||||
echo 'DROP DATABASE ushahidi; DROP USER ushahidi;' | lxc-attach mariadb -- mysql
|
echo 'DROP DATABASE ushahidi; DROP USER ushahidi;' | lxc-attach mariadb -- mysql
|
||||||
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user