|
@@ -50,7 +50,7 @@ fi
|
|
|
# Check if php version is supported
|
|
# Check if php version is supported
|
|
|
if [[ ! "$multiphp_v" =~ $version ]]; then
|
|
if [[ ! "$multiphp_v" =~ $version ]]; then
|
|
|
echo "ERROR: Specified PHP version is not supported or does not exist."
|
|
echo "ERROR: Specified PHP version is not supported or does not exist."
|
|
|
- exit "$E_INVALID";
|
|
|
|
|
|
|
+ exit "$E_INVALID"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Perform verification if read-only mode is enabled
|
|
# Perform verification if read-only mode is enabled
|
|
@@ -131,7 +131,7 @@ update-rc.d php$version-fpm defaults > /dev/null 2>&1
|
|
|
v_tpl=${version//./}
|
|
v_tpl=${version//./}
|
|
|
rm -f /etc/php/$version/fpm/pool.d/*
|
|
rm -f /etc/php/$version/fpm/pool.d/*
|
|
|
cp -f $HESTIA_INSTALL_DIR/php-fpm/dummy.conf /etc/php/$version/fpm/pool.d/
|
|
cp -f $HESTIA_INSTALL_DIR/php-fpm/dummy.conf /etc/php/$version/fpm/pool.d/
|
|
|
-sed -i "s/9999/99$v_tpl/g" /etc/php/$version/fpm/pool.d/dummy.conf
|
|
|
|
|
|
|
+sed -i "s/%backend_version%/$version/g" /etc/php/$version/fpm/pool.d/dummy.conf
|
|
|
cp -f $HESTIA_INSTALL_DIR/php-fpm/php-fpm.conf /etc/php/$version/fpm/
|
|
cp -f $HESTIA_INSTALL_DIR/php-fpm/php-fpm.conf /etc/php/$version/fpm/
|
|
|
sed -i "s/fpm_v/$version/g" /etc/php/$version/fpm/php-fpm.conf
|
|
sed -i "s/fpm_v/$version/g" /etc/php/$version/fpm/php-fpm.conf
|
|
|
|
|
|