From 965716d82a25f237b8b4c59f2a2a746f39ef70f7 Mon Sep 17 00:00:00 2001 From: Nikolaos Perrakis Date: Mon, 23 Jul 2018 01:09:57 +0100 Subject: Fixes #566 Remove redundant opcache configuration (#572) --- update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.sh b/update.sh index 2b1275f4..613da487 100755 --- a/update.sh +++ b/update.sh @@ -289,6 +289,10 @@ EOF install_script nc-backup.sh cd - &>/dev/null + # remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968 + [[ "$( ls -l /etc/php/7.0/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/fpm/conf.d/*-opcache.ini | tail -1 )" + [[ "$( ls -l /etc/php/7.0/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/cli/conf.d/*-opcache.ini | tail -1 )" + } # end - only live updates exit 0 -- cgit v1.2.3