Move all Docker containers to default runlevel
This commit is contained in:
parent
134be8aa46
commit
86eabf4a42
@ -11,5 +11,5 @@ chown -R 61616:61616 /srv/activemq/data
|
||||
|
||||
# Configure Solr service
|
||||
cp ${SOURCE_DIR}/etc/init.d/activemq /etc/init.d/activemq
|
||||
rc-update add activemq boot
|
||||
rc-update add activemq
|
||||
service activemq start
|
||||
|
4
basic.sh
4
basic.sh
@ -20,7 +20,6 @@ cp ${SOURCE_DIR}/etc/inittab /etc/inittab
|
||||
# Enable support for Czech characters
|
||||
cp ${SOURCE_DIR}/etc/rc.conf /etc/rc.conf
|
||||
cp ${SOURCE_DIR}/etc/conf.d/consolefont /etc/conf.d/consolefont
|
||||
rc-update add consolefont boot
|
||||
|
||||
# Set legal banner with URL
|
||||
cp ${SOURCE_DIR}/etc/issue.template /etc/issue.template
|
||||
@ -29,7 +28,6 @@ cp ${SOURCE_DIR}/sbin/issue-gen /sbin/issue-gen
|
||||
|
||||
# Configure NTP client
|
||||
cp ${SOURCE_DIR}/etc/conf.d/ntpd /etc/conf.d/ntpd
|
||||
rc-update add ntpd boot
|
||||
|
||||
# Create a self-signed certificate
|
||||
mkdir /etc/ssl/private
|
||||
@ -46,7 +44,7 @@ cp ${SOURCE_DIR}/usr/local/bin/portal-app-manager /usr/local/bin/portal-app-mana
|
||||
cp -r ${SOURCE_DIR}/srv/portal /srv/portal
|
||||
|
||||
# Configure services
|
||||
for SERVICE in crond docker nginx sshd; do
|
||||
for SERVICE in consolefont crond docker nginx ntpd sshd; do
|
||||
rc-update add ${SERVICE} boot
|
||||
service ${SERVICE} start
|
||||
done
|
||||
|
@ -13,5 +13,5 @@ chown -R 8004:8004 /srv/ckan-datapusher/data
|
||||
|
||||
# Configure CKAN DataPusher service
|
||||
cp ${SOURCE_DIR}/etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher
|
||||
rc-update add ckan-datapusher boot
|
||||
rc-update add ckan-datapusher
|
||||
service ckan-datapusher start
|
||||
|
2
ckan.sh
2
ckan.sh
@ -55,7 +55,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i postgres psql ckan
|
||||
|
||||
# Configure CKAN service
|
||||
cp ${SOURCE_DIR}/etc/init.d/ckan /etc/init.d/ckan
|
||||
rc-update add ckan boot
|
||||
rc-update add ckan
|
||||
service ckan start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -36,7 +36,7 @@ rm /tmp/seeds.rb
|
||||
|
||||
# Create CrisisCleanup service
|
||||
cp ${SOURCE_DIR}/etc/init.d/crisiscleanup /etc/init.d/crisiscleanup
|
||||
rc-update add crisiscleanup boot
|
||||
rc-update add crisiscleanup
|
||||
service crisiscleanup start
|
||||
|
||||
# Create nginx app definition
|
||||
|
2
cts.sh
2
cts.sh
@ -38,7 +38,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i postgres psql cts
|
||||
|
||||
# Create CTS service
|
||||
cp ${SOURCE_DIR}/etc/init.d/cts /etc/init.d/cts
|
||||
rc-update add cts boot
|
||||
rc-update add cts
|
||||
service cts start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -30,7 +30,7 @@ rm -f /tmp/gnuhealth_demo.sql.gz
|
||||
|
||||
# Create GNU Health service
|
||||
cp ${SOURCE_DIR}/etc/init.d/gnuhealth /etc/init.d/gnuhealth
|
||||
rc-update add gnuhealth boot
|
||||
rc-update add gnuhealth
|
||||
service gnuhealth start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -25,7 +25,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i postgres psql kanboard
|
||||
|
||||
# Create KanBoard service
|
||||
cp ${SOURCE_DIR}/etc/init.d/kanboard /etc/init.d/kanboard
|
||||
rc-update add kanboard boot
|
||||
rc-update add kanboard
|
||||
service kanboard start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -20,7 +20,7 @@ fi
|
||||
|
||||
# Configure MariaDB service
|
||||
cp ${SOURCE_DIR}/etc/init.d/mariadb /etc/init.d/mariadb
|
||||
rc-update add mariadb boot
|
||||
rc-update add mariadb
|
||||
service mariadb start
|
||||
|
||||
# Configure MariaDB admin
|
||||
|
@ -24,7 +24,7 @@ envsubst <${SOURCE_DIR}/srv/mifosx/conf/context.xml >/srv/mifosx/conf/context.xm
|
||||
|
||||
# Create Mifos X service
|
||||
cp ${SOURCE_DIR}/etc/init.d/mifosx /etc/init.d/mifosx
|
||||
rc-update add mifosx boot
|
||||
rc-update add mifosx
|
||||
service mifosx start
|
||||
|
||||
# Update admin account
|
||||
|
@ -27,7 +27,7 @@ cp ${SOURCE_DIR}/srv/motech/update-ip.sh /srv/motech/update-ip.sh
|
||||
|
||||
# Create Motech service
|
||||
cp ${SOURCE_DIR}/etc/init.d/motech /etc/init.d/motech
|
||||
rc-update add motech boot
|
||||
rc-update add motech
|
||||
service motech start
|
||||
|
||||
# Configure Motech admin
|
||||
|
@ -14,7 +14,7 @@ envsubst <${SOURCE_DIR}/srv/openmapkit/conf/settings.js >/srv/openmapkit/conf/se
|
||||
|
||||
# Configure OpenMapKit service
|
||||
cp ${SOURCE_DIR}/etc/init.d/openmapkit /etc/init.d/openmapkit
|
||||
rc-update add openmapkit boot
|
||||
rc-update add openmapkit
|
||||
service openmapkit start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -47,7 +47,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i postgres psql pandora
|
||||
|
||||
# Configure Pandora service
|
||||
cp ${SOURCE_DIR}/etc/init.d/pandora /etc/init.d/pandora
|
||||
rc-update add pandora boot
|
||||
rc-update add pandora
|
||||
service pandora start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -14,5 +14,5 @@ cp ${SOURCE_DIR}/srv/postfix/conf/main.cf /srv/postfix/conf/main.cf
|
||||
|
||||
# Configure postfix service
|
||||
cp ${SOURCE_DIR}/etc/init.d/postfix /etc/init.d/postfix
|
||||
rc-update add postfix boot
|
||||
rc-update add postfix
|
||||
service postfix start
|
||||
|
@ -23,5 +23,5 @@ fi
|
||||
|
||||
# Configure Postgres service
|
||||
cp ${SOURCE_DIR}/etc/init.d/postgres /etc/init.d/postgres
|
||||
rc-update add postgres boot
|
||||
rc-update add postgres
|
||||
service postgres start
|
||||
|
@ -11,5 +11,5 @@ chown 5672:5672 /srv/rabbitmq/data
|
||||
|
||||
# Configure RabbitMQ service
|
||||
cp ${SOURCE_DIR}/etc/init.d/rabbitmq /etc/init.d/rabbitmq
|
||||
rc-update add rabbitmq boot
|
||||
rc-update add rabbitmq
|
||||
service rabbitmq start
|
||||
|
2
redis.sh
2
redis.sh
@ -12,5 +12,5 @@ chown -R 6379:6379 /srv/redis/data
|
||||
|
||||
# Configure Redis service
|
||||
cp ${SOURCE_DIR}/etc/init.d/redis /etc/init.d/redis
|
||||
rc-update add redis boot
|
||||
rc-update add redis
|
||||
service redis start
|
||||
|
@ -43,7 +43,7 @@ fi
|
||||
|
||||
# Create Sahana service
|
||||
cp ${SOURCE_DIR}/etc/init.d/sahana /etc/init.d/sahana
|
||||
rc-update add sahana boot
|
||||
rc-update add sahana
|
||||
service sahana start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -40,7 +40,7 @@ fi
|
||||
|
||||
# Create SAMBRO service
|
||||
cp ${SOURCE_DIR}/etc/init.d/sambro /etc/init.d/sambro
|
||||
rc-update add sambro boot
|
||||
rc-update add sambro
|
||||
service sambro start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -29,7 +29,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i postgres psql seeddms
|
||||
|
||||
# Create SeedDMS service
|
||||
cp ${SOURCE_DIR}/etc/init.d/seeddms /etc/init.d/seeddms
|
||||
rc-update add seeddms boot
|
||||
rc-update add seeddms
|
||||
service seeddms start
|
||||
|
||||
# Create nginx app definition
|
||||
|
@ -44,7 +44,7 @@ rm -f /tmp/sigmah-MinimumDataKit.sql /tmp/sigmah-newOrganizationLaunchScript.sql
|
||||
|
||||
# Create Sigmah service
|
||||
cp ${SOURCE_DIR}/etc/init.d/sigmah /etc/init.d/sigmah
|
||||
rc-update add sigmah boot
|
||||
rc-update add sigmah
|
||||
service sigmah start
|
||||
|
||||
# Create nginx app definition
|
||||
|
2
solr.sh
2
solr.sh
@ -13,5 +13,5 @@ chown -R 8983:8983 /srv/solr/data
|
||||
|
||||
# Configure Solr service
|
||||
cp ${SOURCE_DIR}/etc/init.d/solr /etc/init.d/solr
|
||||
rc-update add solr boot
|
||||
rc-update add solr
|
||||
service solr start
|
||||
|
@ -30,7 +30,7 @@ envsubst <${SOURCE_DIR}/adminpwd.sql | docker exec -i mariadb mysql ushahidi
|
||||
|
||||
# Create Ushahidi service
|
||||
cp ${SOURCE_DIR}/etc/init.d/ushahidi /etc/init.d/ushahidi
|
||||
rc-update add ushahidi boot
|
||||
rc-update add ushahidi
|
||||
service ushahidi start
|
||||
|
||||
# Create nginx app definition
|
||||
|
Loading…
Reference in New Issue
Block a user