From ddb6458d3ad6edd7e76369ab394026f326c4ac4d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 24 Oct 2016 12:10:02 +0100 Subject: [PATCH 1/2] Remove config_local..php Remove config_local..php at start then copy back from /config to stop accumulation of potentially unused (and unbeknowst) user profiles. --- root/etc/cont-init.d/40-config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 58ec4f2..63dd3f0 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -8,6 +8,9 @@ mkdir -p \ [[ ! -e /var/www/localhost/cops ]] && \ ln -s /usr/share/webapps/cops /var/www/localhost/cops +#clear previous config +rm /var/www/localhost/cops/config_local.*.php + # copy config [[ ! -e /config/config_local.php ]] && \ cp /defaults/config_local.php /config/config_local.php From 8e731d2da23d7d4fd6112a816b6a9a1638522335 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 24 Oct 2016 12:10:12 +0100 Subject: [PATCH 2/2] Update 40-config --- root/etc/cont-init.d/40-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 63dd3f0..a7bc142 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -8,7 +8,7 @@ mkdir -p \ [[ ! -e /var/www/localhost/cops ]] && \ ln -s /usr/share/webapps/cops /var/www/localhost/cops -#clear previous config +# clear previous config rm /var/www/localhost/cops/config_local.*.php # copy config