mirror of
https://github.com/linuxserver/docker-lychee.git
synced 2026-05-04 00:09:26 +08:00
replace clear_env with 'no' in case someone else tried to override it
This commit is contained in:
parent
b294006de6
commit
970d2ad4c6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user