🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-10-11 19:53:49 -04:00
parent 4ee9c66769
commit e63e6cac74
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -16,6 +16,7 @@ fi
[ -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 "/data/cherokee" ] || mkdir -p "/data/cherokee"
[ -d "/config/cherokee/themes" ] && cp -Rf "/config/cherokee/themes/." "/usr/local/share/cherokee/share/cherokee/themes/"
if [ -z "$(ls -A /data/htdocs/www/* 2>/dev/null||echo '')" ]; then
mkdir -p "/data/htdocs" "/data/htdocs/cgi-bin"
@ -29,6 +30,8 @@ fi
if [ ! -f "/config/ssl//localhost.crt" ] || [ ! -f "/config/ssl//localhost.key" ]; then
create-ssl-cert
fi
# Fix permissions
chmod -Rfv 664 "/data/cherokee"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Start php-fpm server
php-fpm-server &