Add symlink support to find (pool can be symlinked, i. e. when using optional version of php)

This commit is contained in:
Goh'Dan 2017-08-15 21:17:30 +03:00
parent c8e03744ab
commit fbfbda139a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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