mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Update v-get-php-version-of-domain
This commit is contained in:
parent
38ec1b872f
commit
72e659ac18
1 changed files with 5 additions and 4 deletions
|
@ -40,12 +40,12 @@ is_object_valid 'user' 'USER' "$user"
|
||||||
is_object_unsuspended 'user' 'USER' "$user"
|
is_object_unsuspended 'user' 'USER' "$user"
|
||||||
|
|
||||||
if [ ! -d "/home/$user" ]; then
|
if [ ! -d "/home/$user" ]; then
|
||||||
echo "User doesn't exist";
|
# echo "User doesn't exist";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "/home/$user/web/$domain/public_html" ]; then
|
if [ ! -d "/home/$user/web/$domain/public_html" ]; then
|
||||||
echo "Domain doesn't exist";
|
# echo "Domain doesn't exist";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -59,11 +59,12 @@ TPL=$(/usr/local/vesta/bin/v-list-web-domain $user $domain shell | grep 'TEMPLAT
|
||||||
if [[ $TPL == "PHP-FPM-"* ]]; then
|
if [[ $TPL == "PHP-FPM-"* ]]; then
|
||||||
fpm_tpl_ver=${TPL:8:2}
|
fpm_tpl_ver=${TPL:8:2}
|
||||||
fpm_ver="${TPL:8:1}.${TPL:9:1}"
|
fpm_ver="${TPL:8:1}.${TPL:9:1}"
|
||||||
|
echo "$fpm_ver"
|
||||||
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Vesta #
|
# Vesta #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
echo "PHP-FPM version running on given domain is: $fpm_ver"
|
|
||||||
|
|
||||||
exit
|
exit 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue