Added check for correct user when running www-webalizer.sh.

This commit is contained in:
Timo Mkinen 2013-04-25 00:53:03 +03:00
parent 68d5b1ff1b
commit 4976e2eb73

View file

@ -1,5 +1,10 @@
#!/bin/sh
if [ `whoami` != webalizer ]; then
echo "ERR: Script needs to be run as webalizer user" 1>&2
exit 1
fi
umask 022
for cfg in /etc/webalizer/http/*.conf /etc/webalizer/https/*.conf; do