X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Faddsite;h=9ef8ae46876253e7881b007541091e35d4df3897;hb=47aae9573917c701ea8548548d1fe2b0e9bc662f;hp=dcae1079667bd8661963d0aa051fcba71d47b091;hpb=977db018748fa3721a2f5bdddd474e8bc252386d;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index dcae107..9ef8ae4 100755 --- a/usr/local/bin/addsite +++ b/usr/local/bin/addsite @@ -1,5 +1,10 @@ #!/bin/sh +if [ "$UID" -eq 0 ]; then + echo "No need to run as root." + exit 1 +fi + if [ "$1" = "-h" -o "$1" = "--help" -o $# -ne 1 ]; then echo "Usage $0 " echo " is the full path to the site, such as /var/www/example.nl"