Files
hassio-addons/piwigo/rootfs/etc/cont-init.d/90-correct_config
2021-08-31 15:57:24 +02:00

7 lines
282 B
Plaintext

#!/usr/bin/with-contenv bash
##################
# CORRECT CONFIG #
##################
sed -i "s|$conf['show_php_errors'] = E_ALL;|$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;|g" /gallery/local/config/config.inc.php && echo "config corrected for php error" || true