Skip to content

Commit d4c3da8

Browse files
authored
Update dummy.conf (hestiacp#4855)
* Update dummy.conf Rename .sock file to php{version}-dummy.sock instead of php{version}-%domain%.sock * Fix bug in version check
1 parent 04984d6 commit d4c3da8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-restart-web-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ send_email_report() {
3636

3737
is_format_valid 'restart'
3838

39-
if [ -z "$version" ]; then
39+
if [ -n "$version" ]; then
4040
if [[ ! $version =~ ^[0-9]+\.[0-9]+ ]]; then
4141
echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
4242
echo "Example: 7.0, 7.4, 8.0"

install/deb/php-fpm/dummy.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
[www]
11-
listen = /run/php/php%backend_version%-fpm-%domain%.sock
11+
listen = /run/php/php%backend_version%-fpm-dummy.sock
1212
listen.owner = hestiamail
1313
listen.group = www-data
1414
listen.mode = 0660

0 commit comments

Comments
 (0)