Everything :)

This commit is contained in:
2022-05-17 16:11:43 +01:00
parent b78e7a0118
commit e7d68c294c
6 changed files with 910 additions and 80 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/sh
echo -e "Variables set:\\n\
PUID=${PUID}\\n\
PGID=${PGID}\\n\
TZ=${TZ}\\n"
# create necessary config dirs if not present
mkdir -p /config/html
mkdir -p /config/data
mkdir -p /opt/log
# copy default goaccess config if not present
[ -f /config/goaccess.conf ] || cp /opt/goaccess.conf /config/goaccess.conf
# make things easier on the users with access to the folders
chmod -R 777 /config
# ready to go
/sbin/tini -s -- nginx -c /opt/nginx.conf
/sbin/tini -s -- goaccess --no-global-config --config-file=/config/goaccess.conf