warn if reload is run as non root user

This commit is contained in:
j 2013-04-18 15:26:52 +00:00
parent 8954791eb6
commit 28ba382f11

View file

@ -1,4 +1,8 @@
#!/bin/sh #!/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 for service in pandora pandora-tasks pandora-encoding pandora-cron; do
service $service reload service $service reload
done done