From 5deb4a0c47b6f35d6ff832a937dc26983159d63e Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sun, 30 May 2021 14:22:03 +0200 Subject: [PATCH] Supress warning. --- php/php+nginx/php-fpm.runit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/php+nginx/php-fpm.runit b/php/php+nginx/php-fpm.runit index e065c88..77c5a93 100755 --- a/php/php+nginx/php-fpm.runit +++ b/php/php+nginx/php-fpm.runit @@ -22,9 +22,8 @@ if [ $ENABLE_DEBUG_MODE = true ]; then sed -i "s|php_flag\[display_errors\].*|php_flag\[display_errors\] = on|g" /etc/php/{{PHP}}/fpm/pool.d/www.conf echo -e "RUNNING IN \e[31mDEBUG MODE\e[0m\nError output will be VISIBLE." else - rm /etc/php/{{PHP}}/mods-available/xdebug.ini + rm -f /etc/php/{{PHP}}/mods-available/xdebug.ini /etc/php/{{PHP}}/fpm/conf.d/*-xdebug.ini touch /etc/php/{{PHP}}/mods-available/xdebug.ini - rm /etc/php/{{PHP}}/fpm/conf.d/*-xdebug.ini sed -i "s|php_flag\[display_errors\].*|php_flag\[display_errors\] = off|g" /etc/php/{{PHP}}/fpm/pool.d/www.conf echo -e "RUNNING IN \e[32mPRODUCTION MODE\e[0m\nError output will be suppressed." fi