Skip to content

Commit e304dc0

Browse files
author
Kristan Kenney
committed
Merge branch 'main' into feature/logging
2 parents 017d8ef + 1d3376e commit e304dc0

File tree

39 files changed

+10
-1
lines changed

39 files changed

+10
-1
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 #
-44 Bytes
Binary file not shown.
-24 Bytes
Binary file not shown.
2.11 KB
Binary file not shown.
-24 Bytes
Binary file not shown.
-25 Bytes
Binary file not shown.
-24 Bytes
Binary file not shown.
9 Bytes
Binary file not shown.
-54 Bytes
Binary file not shown.
129 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)