This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
goaccess-docker/root/usr/local/bin/goaccess.sh

21 lines
556 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 --html-refresh=60