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