/[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 3441 - (show annotations) (download)
Tue Apr 8 10:04:36 2014 UTC (10 years ago) by colin
File size: 348 byte(s)
mga-advisories: Fix path to su
1 #!/bin/sh
2 set -e
3
4 if [ "$UID" = "0" ]; then
5 echo "Re-running as <%= @mgaadv_login %>." >&2
6 exec /bin/su -c <%= @update_script %> - <%= @mgaadv_login %>
7 fi
8
9 if [ "$USER" != "<%= @mgaadv_login %>" ]; then
10 echo "This script must be run as the <%= @mgaadv_login %> user." >&2
11 exit 1
12 fi
13
14 cd <%= @advisories_dir %>
15 svn up
16 exec /usr/bin/mgaadv mksite

  ViewVC Help
Powered by ViewVC 1.1.30