File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ source $(dirname "$0")/logs/ncsa_combined.sh
1010source $( dirname " $0 " ) /logs/nginx_access.sh
1111source $( dirname " $0 " ) /logs/caddy.sh
1212
13- goan_version=" GOAN v1.1.32 "
13+ goan_version=" GOAN v1.1.33 "
1414goan_log_path=" /opt/log"
1515
1616goaccess_ping_interval=15
@@ -81,7 +81,13 @@ elif [[ "${LOG_TYPE}" == "TRAEFIK" ]]; then
8181elif [[ " ${LOG_TYPE} " == " NCSA_COMBINED" ]]; then
8282 ncsa_combined
8383elif [[ " ${LOG_TYPE} " == " CUSTOM" ]]; then
84- custom
84+ if [ -d " /opt/custom" ] && [ -w " /opt/custom" ]; then
85+ echo " Custom directory /opt/custom is available."
86+ custom
87+ else
88+ echo " Custom directory /opt/custom is not available. Exiting..."
89+ exit 1
90+ fi
8591elif [[ " ${LOG_TYPE} " == " NGINX_ACCESS" ]]; then
8692 nginx_access
8793elif [[ " ${LOG_TYPE} " == " CADDY_V1" ]]; then
You can’t perform that action at this time.
0 commit comments