/[adm]/puppet/modules/mga-advisories/templates/update_script
ViewVC logotype

Contents of /puppet/modules/mga-advisories/templates/update_script

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3439 - (show annotations) (download)
Tue Apr 8 09:02:55 2014 UTC (10 years ago) by colin
File size: 223 byte(s)
mga-advisories: Actually, just rerun automatically as the correct user rather than bailing.
1 #!/bin/sh
2 set -e
3
4 if [ "$UID" = "0" ]; then
5 echo "Re-running as <%= @mgaadv_login %>." >&2
6 exec /usr/bin/su -c <%= @update_script %> - <%= @mgaadv_login %>
7 fi
8
9 cd <%= @advisories_dir %>
10 svn up
11 exec /usr/bin/mgaadv mksite

  ViewVC Help
Powered by ViewVC 1.1.30