Skip to content

Commit b010b40

Browse files
authored
Add check of php-fpm support before installing php version via CLI (hestiacp#2753)
* Add check of php-fpm support before installing php version via CLI * Bug in v-add-web-php
1 parent 094a97f commit b010b40

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/v-add-web-php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ source_conf "$HESTIA/conf/hestia.conf"
2727

2828
check_args '1' "$#" 'VERSION'
2929

30+
if [ -z "$WEB_BACKEND" ]; then
31+
echo "Multiple php versions are not supported for modphp"
32+
fi
33+
3034
# Set file locations
3135
php_fpm="/etc/init.d/php$version-fpm"
3236

bin/v-delete-web-php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ source_conf "$HESTIA/conf/hestia.conf"
2828

2929
check_args '1' "$#" 'VERSION'
3030

31+
if [ -z "$WEB_BACKEND" ]; then
32+
echo "Multiple php versions are not supported for modphp"
33+
fi
34+
3135
# Set file locations
3236
php_fpm="/etc/init.d/php$version-fpm"
3337

0 commit comments

Comments
 (0)