aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mirror/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mirror/templates')
-rw-r--r--modules/mirror/templates/mirrordir9
-rw-r--r--modules/mirror/templates/update_timestamp2
2 files changed, 5 insertions, 6 deletions
diff --git a/modules/mirror/templates/mirrordir b/modules/mirror/templates/mirrordir
index 53655aa0..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
@@ -13,4 +13,3 @@ fi
echo "sync in progress since $(date)" > "$lockfile"
/usr/bin/rsync $rsync_options "$remoteurl" "$localdir"
rm -f "$lockfile"
-
diff --git a/modules/mirror/templates/update_timestamp b/modules/mirror/templates/update_timestamp
index a037d10d..1f7711c6 100644
--- a/modules/mirror/templates/update_timestamp
+++ b/modules/mirror/templates/update_timestamp
@@ -2,4 +2,4 @@
# $id$
-date +%s%n%c > /distrib/mirror/mageia_timestamp
+LC_ALL=C.UTF-8 date -u '+%s%n%c %Z' > /distrib/mirror/mageia_timestamp