|
|
@@ -93,12 +93,13 @@ fi
|
|
|
[[ -d /etc/php/$version ]] && rm -rf "/etc/php/$version"
|
|
|
|
|
|
if [ "$WEB_BACKEND" = "php-fpm" ]; then
|
|
|
- # Check if www.conf is still missing
|
|
|
- if [ ! -f "/etc/php/*/fpm/pool.d/www.conf" ]; then
|
|
|
+ conf=$(find /etc/php* -name www.conf)
|
|
|
+ # Check if www.conf exists
|
|
|
+ if [ -z "$conf" ]; then
|
|
|
# If not grab the "last php version
|
|
|
- last=$($HESTIA/bin/v-list-sys-php "shell" | tail -n1);
|
|
|
+ last=$($BIN/v-list-sys-php "shell" | tail -n1);
|
|
|
cp -f $HESTIA/install/deb/php-fpm/www.conf /etc/php/$last/fpm/pool.d/www.conf
|
|
|
- $HESTIA/bin/v-restart-web-backend
|
|
|
+ $BIN/v-restart-web-backend
|
|
|
fi
|
|
|
fi
|
|
|
|