Skip to content

Commit

Permalink
[FIX] fixed analyser for non vhost setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dameyerdave committed Jul 11, 2024
1 parent d827476 commit 12dedbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ for i in "${!vhosts[@]}"
do
readarray -d , -t domains < <(printf '%s' "${vhosts[i]}")
domain=${domains[0]}
vhost_path_suffix="/${domain}"
vhost_path_suffix=''
if [ ${#vhosts[@]} -gt 1 ]; then
vhost_path_suffix="/${domain}"
fi
access_log=/var/log${vhost_path_suffix}/access.log
mkdir -p /web_root${vhost_path_suffix}/analytics
mkdir -p /var/log${vhost_path_suffix}
Expand Down

0 comments on commit 12dedbb

Please sign in to comment.