diff options
| author | Dan Fandrich <danf@mageia.org> | 2026-02-21 18:52:35 -0800 |
|---|---|---|
| committer | Dan Fandrich <danf@mageia.org> | 2026-02-21 19:05:59 -0800 |
| commit | 12299baacbdd26b32de99370508b1ae79974240d (patch) | |
| tree | 8819ecaa6f0ebc1d91323922a1898c0057fea27d /modules/mga_advisories/templates/update_script | |
| parent | dff3eec23a755ceb24e758d959f89047263c1039 (diff) | |
| download | puppet-12299baa.tar puppet-12299baa.tar.gz puppet-12299baa.tar.bz2 puppet-12299baa.tar.xz puppet-12299baa.zip | |
Rename module paths to match classes
The refactor in commit e39155d4d changed class names but Puppet 3 seems
to require the module path name to match.
Diffstat (limited to 'modules/mga_advisories/templates/update_script')
| -rw-r--r-- | modules/mga_advisories/templates/update_script | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/mga_advisories/templates/update_script b/modules/mga_advisories/templates/update_script new file mode 100644 index 00000000..71d8d1d4 --- /dev/null +++ b/modules/mga_advisories/templates/update_script @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +if [ "$UID" = "0" ]; then + echo "Re-running as '<%= @mgaadv_login %>' user." >&2 + exec /bin/su -c <%= @update_script %> - <%= @mgaadv_login %> +fi + +if [ "$USER" != "<%= @mgaadv_login %>" ]; then + echo "This script must be run as the <%= @mgaadv_login %> user." >&2 + exit 1 +fi + +cd <%= @advisories_dir %> +svn up +exec /usr/bin/mgaadv process |
