Skip to content

Commit b62699e

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#1681 from jaapmarcus/fix/1477-fix-removal-www.conf-by-v-delete-web-php
fix issues with removal of www.conf by executing v-delete-web-php hestiacp#1477
2 parents 66f19e1 + 7976a7b commit b62699e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/v-delete-web-php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ fi
8888
# Cleanup php folder
8989
[[ -d /etc/php/$version ]] && rm -rf "/etc/php/$version"
9090

91+
if [ "$WEB_BACKEND" = "php-fpm" ]; then
92+
# Check if www.conf is still missing
93+
if [ ! -f "/etc/php/*/fpm/pool.d/www.conf" ]; then
94+
# If not grab the "last php version
95+
last=$($HESTIA/bin/v-list-sys-php "shell" | tail -n1);
96+
cp -f $HESTIA/install/deb/php-fpm/www.conf /etc/php/$last/fpm/pool.d/www.conf
97+
$HESTIA/bin/v-restart-web-backend
98+
fi
99+
fi
91100

92101
#----------------------------------------------------------#
93102
# Hestia #

0 commit comments

Comments
 (0)