Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaos Perrakis <nikperrakis@gmail.com>2018-07-23 03:09:57 +0300
committernachoparker <nacho@ownyourbits.com>2018-07-23 03:19:23 +0300
commit965716d82a25f237b8b4c59f2a2a746f39ef70f7 (patch)
treec2ad9e67e3050dc0eeb6d244c9a66fadf6b20268
parentd3f5f5df358570b6a92c8586bf8292b14195bffa (diff)
Fixes #566 Remove redundant opcache configuration (#572)v0.57.21
-rwxr-xr-xupdate.sh4
1 files changed, 4 insertions, 0 deletions
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