mirror of
https://github.com/casjaysdevdocker/cherokee
synced 2025-09-18 15:57:44 -04:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user