Build goaccess from source

This commit is contained in:
quietsy
2022-01-14 20:15:14 +02:00
parent 7f4f9261a0
commit 98e966b8e9
3 changed files with 35 additions and 3 deletions
+7 -2
View File
@@ -2,12 +2,17 @@
echo "Applying the SWAG dashboard mod..."
apk add --no-cache --upgrade goaccess
apk add libmaxminddb
cp -f /dashboard/dashboard.subdomain.conf.sample /config/nginx/proxy-confs/dashboard.subdomain.conf.sample
if [ ! -f /config/nginx/proxy-confs/dashboard.subdomain.conf ]; then
cp /dashboard/dashboard.subdomain.conf.sample /config/nginx/proxy-confs/dashboard.subdomain.conf
fi
if [ "$(sed -nE 's|## Version ([0-9]{4}\/[0-9]{2}\/[0-9]{2}).*|\1|p' /dashboard/dashboard.subdomain.conf.sample)" != "$(sed -nE 's|## Version ([0-9]{4}\/[0-9]{2}\/[0-9]{2}).*|\1|p' /config/nginx/proxy-confs/dashboard.subdomain.conf)" ]; then
echo "**** The swag-dashboard conf has been updated ****"
echo "**** Compare the changes using the sample file: /config/nginx/proxy-confs/dashboard.subdomain.conf.sample"
fi
# permissions
chown -R abc:abc \
/dashboard \