Skip to content

Commit 155c11e

Browse files
authored
Fix hestiacp#2082 By improving the check (hestiacp#2083)
1 parent b6afefc commit 155c11e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
## [Development]
55

66
- Allow custom mail domains with own certificates #2061 @myrevery
7+
- Fixed #2082 v-delete-web-php creates always new config file
78

89
## [1.4.11] - Service release
910

bin/v-delete-web-php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ fi
9393
[[ -d /etc/php/$version ]] && rm -rf "/etc/php/$version"
9494

9595
if [ "$WEB_BACKEND" = "php-fpm" ]; then
96-
# Check if www.conf is still missing
97-
if [ ! -f "/etc/php/*/fpm/pool.d/www.conf" ]; then
96+
conf=$(find /etc/php* -name www.conf)
97+
# Check if www.conf exists
98+
if [ -z "$conf" ]; then
9899
# If not grab the "last php version
99-
last=$($HESTIA/bin/v-list-sys-php "shell" | tail -n1);
100+
last=$($BIN/v-list-sys-php "shell" | tail -n1);
100101
cp -f $HESTIA/install/deb/php-fpm/www.conf /etc/php/$last/fpm/pool.d/www.conf
101-
$HESTIA/bin/v-restart-web-backend
102+
$BIN/v-restart-web-backend
102103
fi
103104
fi
104105

0 commit comments

Comments
 (0)