Added check for correct user when running www-webalizer.sh.
This commit is contained in:
parent
68d5b1ff1b
commit
4976e2eb73
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue