Skip to content

Commit fbfbda1

Browse files
committed
Add symlink support to find (pool can be symlinked, i. e. when using optional version of php)
1 parent c8e0374 commit fbfbda1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-delete-web-domain-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain"
4343
#----------------------------------------------------------#
4444

4545
# Defining pool directory
46-
pool=$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
46+
pool=$(find -L /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
4747
if [ ! -e "$pool" ]; then
4848
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
4949
fi

func/domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ is_web_alias_new() {
8484

8585
# Prepare web backend
8686
prepare_web_backend() {
87-
pool=$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
87+
pool=$(find -L /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
8888
if [ ! -e "$pool" ]; then
8989
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
9090
fi

0 commit comments

Comments
 (0)