From d7fa3517525b2398950c616dc27d65adf777222c Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 11 Oct 2022 13:07:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cherokee-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/cherokee-server b/bin/cherokee-server index e6d4282..8634f5b 100755 --- a/bin/cherokee-server +++ b/bin/cherokee-server @@ -10,7 +10,10 @@ if [ ! -d "/config/cherokee" ] && [ -d "/usr/local/share/template-files/config/c fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ -d "/data/htdocs" ] || mkdir -p "/data/htdocs" -[ -d "/data/htdocs/www" ] || cp -Rf "/usr/local/share/template-files/data/." "/data/" +if [ -n "$(ls -A /data/htdocs/www/* 2>/dev/null||echo '')" ]; then + mkdir -p "/data/htdocs" "/data/htdocs/cgi-bin" + cp -Rf "/usr/local/share/template-files/data/." "/data/" +fi [ -d "/usr/lib/cgi-bin" ] && [ -d "" ] && cp -Rf "/usr/lib/cgi-bin/." "/data/htdocs/cgi-bin/" [ -f "/config/cherokee/cherokee.conf" ] && cp -Rfv "/config/cherokee/cherokee.conf" "/etc/cherokee/" [ -d "/usr/local/share/cherokee/icons" ] && [ ! -d "/config/cherokee/icons" ] && cp -Rf "/usr/local/share/cherokee/icons/." "/config/cherokee/icons/"