1
0
mirror of https://git.envs.net/envs/ops.git synced 2024-06-15 05:16:37 +00:00

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

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/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/ 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 \ -o /var/www/envs.net/stats/index.html \
--ignore-panel=HOSTS \ --ignore-panel=HOSTS \
--ignore-panel=KEYPHRASES \ --ignore-panel=KEYPHRASES \
--log-format=VCOMBINED - --log-format=VCOMBINED - \
--html-prefs='{"theme":"darkGray"}'
exit 0 exit 0