diff options
Diffstat (limited to 'modules/mga-advisories')
-rw-r--r-- | modules/mga-advisories/templates/update_script | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mga-advisories/templates/update_script b/modules/mga-advisories/templates/update_script index 09c97768..9d15c5ca 100644 --- a/modules/mga-advisories/templates/update_script +++ b/modules/mga-advisories/templates/update_script @@ -1,6 +1,11 @@ #!/bin/sh set -e +if [ "$UID" = "0" ]; then + echo "You are root. You shouldn't be. Try being <%= @mgaadv_login %> instead." >&2 + exit 1 +fi + cd <%= @advisories_dir %> svn up exec /usr/bin/mgaadv mksite |