Removed redundant php7.2 opcache configuration. (#694)

This commit is contained in:
Nikolaos Perrakis 2018-10-27 14:24:14 +01:00 committed by nachoparker
parent 26083e9b75
commit 6446229a7d

View File

@ -213,6 +213,10 @@ Pin-Priority: 600
EOF
fi
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages.
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"
[[ "$( ls -l /etc/php/7.2/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/cli/conf.d/*-opcache.ini | tail -1 )"
} # end - only live updates