diff options
author | Colin Guthrie <colin@mageia.org> | 2014-04-08 09:02:55 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-04-08 09:02:55 +0000 |
commit | f3099e65dda02fbb3b9ae3217e952fd5b50a333b (patch) | |
tree | 86b2cefd93344bacd102b9c9a9ba7dd03b51fa89 /modules | |
parent | 215a5e809b73bb90d1e42cdfa70149dede2a3b21 (diff) | |
download | puppet-f3099e65dda02fbb3b9ae3217e952fd5b50a333b.tar puppet-f3099e65dda02fbb3b9ae3217e952fd5b50a333b.tar.gz puppet-f3099e65dda02fbb3b9ae3217e952fd5b50a333b.tar.bz2 puppet-f3099e65dda02fbb3b9ae3217e952fd5b50a333b.tar.xz puppet-f3099e65dda02fbb3b9ae3217e952fd5b50a333b.zip |
mga-advisories: Actually, just rerun automatically as the correct user rather than bailing.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mga-advisories/templates/update_script | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mga-advisories/templates/update_script b/modules/mga-advisories/templates/update_script index 9d15c5ca..273efff1 100644 --- a/modules/mga-advisories/templates/update_script +++ b/modules/mga-advisories/templates/update_script @@ -2,8 +2,8 @@ set -e if [ "$UID" = "0" ]; then - echo "You are root. You shouldn't be. Try being <%= @mgaadv_login %> instead." >&2 - exit 1 + echo "Re-running as <%= @mgaadv_login %>." >&2 + exec /usr/bin/su -c <%= @update_script %> - <%= @mgaadv_login %> fi cd <%= @advisories_dir %> |