21 lines
538 B
Bash
21 lines
538 B
Bash
#!/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 |