🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay
2022-10-11 17:47:56 -04:00
parent 14ec7c9c18
commit 23ff9d5fe8
2 changed files with 14 additions and 6 deletions

View File

@@ -12,6 +12,8 @@ if [ ! -d "/config/cherokee" ] && [ -d "/usr/local/share/template-files/config/c
cp -Rf "/usr/local/share/template-files/config/cherokee/." "/config/cherokee/"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/config/cherokee" ] && cp -Rf "/config/cherokee/." "/etc/cherokee/" || cp -Rf "/usr/local/share/template-files/config/defaults/cherokee/" "/etc/cherokee/"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/data/htdocs" ] || mkdir -p "/data/htdocs"
if [ -z "$(ls -A /data/htdocs/www/* 2>/dev/null||echo '')" ]; then
mkdir -p "/data/htdocs" "/data/htdocs/cgi-bin"
@@ -28,6 +30,6 @@ fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ ! -f "/tmp/cherokee.pid" ]; then
cherokee-admin -b -p 9090 -c /etc/cherokee/cherokee.conf &
exec cherokee -c /etc/cherokee/cherokee.conf || rm -Rf "/tmp/cherokee.pid"
exec cherokee -C /etc/cherokee/cherokee.conf || rm -Rf "/tmp/cherokee.pid"
fi