From 970d2ad4c6296bdf34e39fd671f1fdc4b1416c8f Mon Sep 17 00:00:00 2001 From: alex-phillips Date: Mon, 6 Jul 2020 16:38:12 -0400 Subject: [PATCH] replace clear_env with 'no' in case someone else tried to override it --- root/etc/cont-init.d/40-config | 1 + 1 file changed, 1 insertion(+) diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 2db98b0..e8aedd4 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -59,6 +59,7 @@ else fi # add line to preserve environment variables in FPM so Lychee can use $PATH (for things like ffprobe) +sed -E -i 's/^clear_env =.*$/clear_env = no/g' /config/php/www2.conf grep -qxF 'clear_env = no' /config/php/www2.conf || echo 'clear_env = no' >> /config/php/www2.conf # permissions