Skip to content

Commit

Permalink
Update fastcgi_ops_root.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hsntgm authored Jul 11, 2024
1 parent f46ac06 commit 93532f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fastcgi_ops_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ detect_nginx_conf() {
fi
}

# Detect nginx.conf if user not selected manual setup
[[ ! -f "${this_script_path}/manual-configs.nginx" ]] && detect_nginx_conf

# Function to extract FastCGI cache paths from NGINX configuration files
extract_fastcgi_cache_paths() {
{
Expand Down Expand Up @@ -310,7 +307,9 @@ validate_cache_paths() {

# Auto detection stuff
if ! [[ -f "${this_script_path}/manual-configs.nginx" ]]; then
# Extract unique FastCGI cache paths from Nginx config files
# Get nginx.conf
detect_nginx_conf
# Extract FastCGI Cache Paths from nginx.conf
FASTCGI_CACHE_PATHS=$(extract_fastcgi_cache_paths)
# Find active vhosts
ACTIVE_VHOSTS=$(nginx -T 2>/dev/null | grep -E "server_name|fastcgi_pass" | grep -B1 "fastcgi_pass" | grep "server_name" | awk '{print $2}' | sed 's/;$//')
Expand Down

0 comments on commit 93532f2

Please sign in to comment.