stats: fix root check and change to dark-grey theme

This commit is contained in:
creme 2020-01-27 13:34:11 +01:00
parent 5d26f1c41a
commit b95bc0343e
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
[ "(id -u)" -ne 0 ] && printf 'Please run as root!\n' && exit 1
[ "$(id -u)" -ne 0 ] && printf 'Please run as root!\n' && exit 1
test ! -f /var/www/envs.net/stats/ && mkdir -p /var/www/envs.net/stats/
@ -12,6 +12,7 @@ test ! -f /var/www/envs.net/stats/ && mkdir -p /var/www/envs.net/stats/
-o /var/www/envs.net/stats/index.html \
--ignore-panel=HOSTS \
--ignore-panel=KEYPHRASES \
--log-format=VCOMBINED -
--log-format=VCOMBINED - \
--html-prefs='{"theme":"darkGray"}'
exit 0