Refactoring

This commit is contained in:
Jonatan Rek committed 2026-10-31 19:16:51 +01:00
1 parent 085ab7e9b8
commit 411f7be896
29 files changed
+219 -50

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
for ini in "${PHP_INI_DIR}"/conf.d/*opcache.ini; do
if [ "$(echo "$APP_DEBUG" | tr '[:upper:]' '[:lower:]')" = "false" ]; then
sed -ri -e "s!opcache.validate_timestamps=.*!opcache.validate_timestamps=${PHP_OPCACHE_VALIDATE_TIMESTAMPS:-1}!g" "$ini"
else
sed -ri -e 's!opcache.enable=1!opcache.enable=0!g' "$ini"
fi
done