mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Add symlink support to find (pool can be symlinked, i. e. when using optional version of php)
This commit is contained in:
parent
c8e03744ab
commit
fbfbda139a
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain"
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Defining pool directory
|
# Defining pool directory
|
||||||
pool=$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
|
pool=$(find -L /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
|
||||||
if [ ! -e "$pool" ]; then
|
if [ ! -e "$pool" ]; then
|
||||||
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
|
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -84,7 +84,7 @@ is_web_alias_new() {
|
||||||
|
|
||||||
# Prepare web backend
|
# Prepare web backend
|
||||||
prepare_web_backend() {
|
prepare_web_backend() {
|
||||||
pool=$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
|
pool=$(find -L /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
|
||||||
if [ ! -e "$pool" ]; then
|
if [ ! -e "$pool" ]; then
|
||||||
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
|
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue