Everything :)
This commit is contained in:
21
root/usr/local/bin/goaccess.sh
Normal file
21
root/usr/local/bin/goaccess.sh
Normal 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
|
Reference in New Issue
Block a user