From 363e1176ffa4a1e7c5c2a48fff730b1053c3891e Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 29 Apr 2024 17:48:03 +0200 Subject: [PATCH] create_vhost.sh: Log directory in case of suexec.. --- create_vhost.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_vhost.sh b/create_vhost.sh index e2a05fd..e9e0a2d 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -852,7 +852,9 @@ if [ -z "$_existing_vhost_config_file" ]; then done - if [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then + if $_suEXEC ; then + __log_dir=${_web_base_dir}/logs + elif [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then __log_dir="$COMMON_LOGFILE_DIR" else __log_dir=${_web_base_dir}/logs