mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
Fix for reappearing opcache bug. (#1031)
Signed-off-by: Nikolaos Perrakis <nikperrakis@gmail.com>
This commit is contained in:
parent
3562d91566
commit
a208a02a53
@ -191,6 +191,12 @@ EOF
|
||||
chmod +x /etc/update-motd.d/30ncp-dist-upgrade
|
||||
}
|
||||
|
||||
# Remove redundant opcache configuration.
|
||||
# Related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
|
||||
# Bug #416 reappeared after we moved to php7.3 and debian buster packages.
|
||||
[[ "$( ls -l /etc/php/7.3/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.3/fpm/conf.d/*-opcache.ini | tail -1 )"
|
||||
[[ "$( ls -l /etc/php/7.3/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.3/cli/conf.d/*-opcache.ini | tail -1 )"
|
||||
|
||||
exit 0
|
||||
|
||||
# License
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user