Update common.sh

pull/43/head
necro-nemesis 2 years ago committed by GitHub
parent 72cdd0e2b7
commit 2974d33620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -407,12 +407,12 @@ function optimize_php() {
sudo sed -i -E 's/^session\.cookie_httponly\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n]o))\s*$/session.cookie_httponly = 1/' "$phpcgiconf"
# fi
# if [ "$php_package" = "php7.0-cgi" ]; then
echo -n "Enabling PHP OPCache"
# echo -n "Enable PHP OPCache? [Y/n]: "
# read answer
# if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then
# echo "Php-cgi enabling opcache.enable."
if [ "$php_package" = "php7.0-cgi" ]; then
# echo -n "Enabling PHP OPCache"
echo -n "Enable PHP OPCache? [Y/n]: "
read answer
if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then
echo "Php-cgi enabling opcache.enable."
sudo sed -i -E 's/^;?opcache\.enable\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n]o))\s*$/opcache.enable = 1/' "$phpcgiconf"
# Make sure opcache extension is turned on.
if [ -f "/usr/sbin/phpenmod" ]; then
@ -421,8 +421,8 @@ function optimize_php() {
else
install_warning "phpenmod not found."
fi
# fi
# fi
fi
fi
}
function install_complete() {

Loading…
Cancel
Save