secured php.ini for multi-php

This commit is contained in:
myvesta 2021-09-04 12:18:09 +02:00 committed by GitHub
commit 7220e01116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,6 +145,9 @@ if [ "$inst_70" -eq 1 ]; then
if [ $debian_version -eq 10 ]; then if [ $debian_version -eq 10 ]; then
cp /etc/php/7.3/fpm/php.ini /etc/php/7.0/fpm/php.ini cp /etc/php/7.3/fpm/php.ini /etc/php/7.0/fpm/php.ini
fi fi
if [ $debian_version -eq 11 ]; then
cp /etc/php/7.4/fpm/php.ini /etc/php/7.0/fpm/php.ini
fi
press_enter "=== Press enter to continue ===============================================================================" press_enter "=== Press enter to continue ==============================================================================="
fi fi
@ -166,6 +169,9 @@ if [ "$inst_71" -eq 1 ]; then
if [ $debian_version -eq 10 ]; then if [ $debian_version -eq 10 ]; then
cp /etc/php/7.3/fpm/php.ini /etc/php/7.1/fpm/php.ini cp /etc/php/7.3/fpm/php.ini /etc/php/7.1/fpm/php.ini
fi fi
if [ $debian_version -eq 11 ]; then
cp /etc/php/7.4/fpm/php.ini /etc/php/7.1/fpm/php.ini
fi
press_enter "=== Press enter to continue ===============================================================================" press_enter "=== Press enter to continue ==============================================================================="
fi fi
@ -187,6 +193,9 @@ if [ "$inst_72" -eq 1 ]; then
if [ $debian_version -eq 10 ]; then if [ $debian_version -eq 10 ]; then
cp /etc/php/7.3/fpm/php.ini /etc/php/7.2/fpm/php.ini cp /etc/php/7.3/fpm/php.ini /etc/php/7.2/fpm/php.ini
fi fi
if [ $debian_version -eq 11 ]; then
cp /etc/php/7.4/fpm/php.ini /etc/php/7.2/fpm/php.ini
fi
press_enter "=== Press enter to continue ===============================================================================" press_enter "=== Press enter to continue ==============================================================================="
fi fi
@ -209,6 +218,9 @@ if [ "$inst_73" -eq 1 ]; then
if [ $debian_version -eq 9 ]; then if [ $debian_version -eq 9 ]; then
cp /etc/php/7.0/apache2/php.ini /etc/php/7.3/fpm/php.ini cp /etc/php/7.0/apache2/php.ini /etc/php/7.3/fpm/php.ini
fi fi
if [ $debian_version -eq 11 ]; then
cp /etc/php/7.4/fpm/php.ini /etc/php/7.3/fpm/php.ini
fi
press_enter "=== Press enter to continue ===============================================================================" press_enter "=== Press enter to continue ==============================================================================="
fi fi