Use local php. Part 3
This commit is contained in:
@@ -52,11 +52,13 @@ get_domain_values 'web'
|
||||
BACKEND="$template"
|
||||
|
||||
# Defining pool directory
|
||||
if [ -f "/etc/redhat-release" ]; then
|
||||
pool=$(find -L /etc/opt/remi/ -name "$domain.conf" -exec dirname {} \;)
|
||||
pool=""
|
||||
if [ "$LOCAL_PHP" == "yes" ]; then
|
||||
pool=$(find -L /opt/brepo/ -name "$domain.conf" -exec dirname {} \;)
|
||||
else
|
||||
pool=$(find -L /etc/php/ -name "$domain.conf" -exec dirname {} \;)
|
||||
pool=$(find -L /etc/opt/remi/ -name "$domain.conf" -exec dirname {} \;)
|
||||
fi
|
||||
|
||||
if [ ! -e "$pool" ]; then
|
||||
check_result "$E_NOTEXIST" "php-fpm pool doesn't exist"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user