Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAeon512 <aeon512@gmail.com>2018-02-15 23:54:34 +0300
committernachoparker <nacho@ownyourbits.com>2018-02-19 15:12:48 +0300
commita9a18097e6f7b9431e5e34044afe970456faeb39 (patch)
treee2ef54f76010af83b87717691c70bf4286a10403 /docker/lamp
parent648f53b88d2012e6489838cd898498def0e8f0b0 (diff)
random password provisioning on boot/startupv0.46.20
During bootup of a new docker image, the redis password might not match the nextcloud configuration. Hence, we automatically update the nextcloud configuration. For the MariaDB password the same method is applied. Additionaly identical files have been moved to docker-common to simplify changes in the future
Diffstat (limited to 'docker/lamp')
-rwxr-xr-xdocker/lamp/010lamp36
-rw-r--r--docker/lamp/Dockerfile2
2 files changed, 1 insertions, 37 deletions
diff --git a/docker/lamp/010lamp b/docker/lamp/010lamp
deleted file mode 100755
index 9552d848..00000000
--- a/docker/lamp/010lamp
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-source /usr/local/etc/library.sh
-
-set -e
-
-[[ "$1" == "stop" ]] && {
- echo "Stopping apache"
- apachectl graceful-stop
- echo "Stopping PHP-fpm"
- killall php-fpm7.0
- echo "Stopping mariaDB"
- mysqladmin -u root shutdown
- echo "LAMP cleanup complete"
- exit 0
-}
-
-# MOVE CONFIGS TO PERSISTENT VOLUME
-persistent_cfg /etc/apache2
-
-echo "Starting PHP-fpm"
-php-fpm7.0 &
-
-echo "Starting Apache"
-/usr/sbin/apache2ctl start
-
-echo "Starting mariaDB"
-mysqld &
-
-# wait for mariadb
-while :; do
- [[ -S /var/run/mysqld/mysqld.sock ]] && break
- sleep 0.5
-done
-
-exit 0
diff --git a/docker/lamp/Dockerfile b/docker/lamp/Dockerfile
index 86418ef4..6e937edb 100644
--- a/docker/lamp/Dockerfile
+++ b/docker/lamp/Dockerfile
@@ -33,7 +33,7 @@ rm -f /var/log/alternatives.log /var/log/apt/*; \
rm /data/database/ib_logfile*; \
rm /usr/local/etc/lamp.sh
-COPY docker/lamp/010lamp /etc/services-enabled.d/
+COPY docker-common/lamp/010lamp /etc/services-enabled.d/
ENTRYPOINT ["/run-parts.sh"]