🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay
2022-10-11 18:57:47 -04:00
parent 671a763245
commit 9318a8fa07
3 changed files with 49 additions and 30 deletions

View File

@@ -4,7 +4,7 @@
[ -n "$DEBUG" ] && set -x
set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
export PATH="/usr/local/share/cherokee/bin:$PATH"
export PATH="/usr/local/share/cherokee/bin:/usr/local/share/cherokee/sbin:$PATH"
[ -f "/config/ssl.env" ] && . "/config/ssl.env"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ ! -d "/config/cherokee" ] && [ -d "/usr/local/share/template-files/config/cherokee" ]; then
@@ -13,7 +13,7 @@ if [ ! -d "/config/cherokee" ] && [ -d "/usr/local/share/template-files/config/c
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/data/cherokee/graphs" ] || mkdir -p "/data/cherokee/graphs"
[ -d "/config/cherokee" ] && cp -Rf "/config/cherokee/." "/etc/cherokee/" || cp -Rf "/usr/local/share/template-files/config/defaults/cherokee/" "/etc/cherokee/"
[ -d "/config/cherokee" ] && cp -Rf "/config/cherokee/." "/etc/cherokee/" || cp -Rf "/usr/local/share/template-files/config/defaults/" "/etc/cherokee/"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/data/htdocs" ] || mkdir -p "/data/htdocs"
[ -d "/config/cherokee/themes" ] && cp -Rf "/config/cherokee/themes/." "/usr/local/share/cherokee/share/cherokee/themes/"
@@ -30,8 +30,10 @@ if [ ! -f "/config/ssl//localhost.crt" ] || [ ! -f "/config/ssl//localhost.key"
create-ssl-cert
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
php-fpm-server
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ ! -f "/tmp/cherokee.pid" ]; then
cherokee-admin -b -p 9090 -c /etc/cherokee/cherokee.conf &
cherokee-admin -b -p 9090 -C /etc/cherokee/cherokee.conf &
exec cherokee -C /etc/cherokee/cherokee.conf || rm -Rf "/tmp/cherokee.pid"
fi