forked from 0x2620/pandora
warn if reload is run as non root user
This commit is contained in:
parent
8954791eb6
commit
28ba382f11
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/bin/sh
|
||||
if [ `whoami` != 'root' ]; then
|
||||
echo you have to be root or run with sudo
|
||||
exit 1
|
||||
fi
|
||||
for service in pandora pandora-tasks pandora-encoding pandora-cron; do
|
||||
service $service reload
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue