v-edit-php tuning

This commit is contained in:
myvesta 2024-04-11 20:41:56 +02:00 committed by GitHub
commit 9d65824606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View file

@ -69,13 +69,18 @@ else
nano "$config_file"
fi
echo "Restarting PHP-FPM service for PHP version $fpm_ver..."
echo "Restarting PHP-FPM service for PHP version ${fpm_ver}"
systemctl restart php${fpm_ver}-fpm
echo "The PHP-FPM service for PHP version 7.0 has been restarted successfully."
if [ $? -ne 0 ]; then
systemctl status php${fpm_ver}-fpm
check_result $E_RESTART "ERROR: php${fpm_ver}-fpm restart failed - please re-run the command and fix the problem !!!"
else
echo "The PHP-FPM service for PHP version ${fpm_ver} has been restarted successfully."
fi
echo ""
#----------------------------------------------------------#
# Vesta #
#----------------------------------------------------------#
exit 1;
exit 0;

View file

@ -52,11 +52,15 @@ $editor_cmd "$php_ini_path"
# Restart the PHP-FPM service for the selected version
echo "Restarting the PHP-FPM service for PHP version $php_version..."
systemctl restart php${php_version}-fpm
echo "The PHP-FPM service for PHP version $php_version has been restarted successfully."
if [ $? -ne 0 ]; then
systemctl status php${php_version}-fpm
check_result $E_RESTART "ERROR: php${php_version}-fpm restart failed - please re-run the command and fix the problem !!!"
else
echo "The PHP-FPM service for PHP version ${php_version} has been restarted successfully."
fi
#----------------------------------------------------------#
# Exit #
#----------------------------------------------------------#
exit
exit 0;