aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mirror/templates
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-11-20 15:36:06 -0800
committerDan Fandrich <danf@mageia.org>2024-11-20 15:36:06 -0800
commit727145ed50d60655590c0199656c2378d32bfffc (patch)
tree3a95f1ba2f64656879be8c857470155c7bde398d /modules/mirror/templates
parent7766681f7ef95a3ad7e6c7c1a26f829ec02d776b (diff)
downloadpuppet-727145ed50d60655590c0199656c2378d32bfffc.tar
puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.gz
puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.bz2
puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.xz
puppet-727145ed50d60655590c0199656c2378d32bfffc.zip
Use @ when accessing variables in templatesHEADmaster
Access without the @ symbol is the older method and is discouraged. This take leaves alone accesses of variables that are defined within the template, which don't seem to allow an @. This is the second batch of files.
Diffstat (limited to 'modules/mirror/templates')
-rw-r--r--modules/mirror/templates/mirrordir8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mirror/templates/mirrordir b/modules/mirror/templates/mirrordir
index b8bf9fb6..9cf09650 100644
--- a/modules/mirror/templates/mirrordir
+++ b/modules/mirror/templates/mirrordir
@@ -1,9 +1,9 @@
#!/bin/sh
-remoteurl="<%= remoteurl%>"
-localdir="<%= localdir %>"
-rsync_options="<%= rsync_options %>"
-lockfile="<%= lockfile %>"
+remoteurl="<%= @remoteurl%>"
+localdir="<%= @localdir %>"
+rsync_options="<%= @rsync_options %>"
+lockfile="<%= @lockfile %>"
if [ -f "$lockfile" ]; then
# show error message when run from command line