diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-20 23:05:55 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-20 23:05:55 +0000 |
commit | 694613924e7f4b4752855f9f549ccbf114bea4db (patch) | |
tree | d9430a56ecd4646f9a32287e32365aa8588c304c /modules/mirror/templates | |
parent | 6305655bfcc170734854fbfa2c0cb4758a2b4986 (diff) | |
download | puppet-694613924e7f4b4752855f9f549ccbf114bea4db.tar puppet-694613924e7f4b4752855f9f549ccbf114bea4db.tar.gz puppet-694613924e7f4b4752855f9f549ccbf114bea4db.tar.bz2 puppet-694613924e7f4b4752855f9f549ccbf114bea4db.tar.xz puppet-694613924e7f4b4752855f9f549ccbf114bea4db.zip |
send a message when there is a lock in place preventing upload
Diffstat (limited to 'modules/mirror/templates')
-rw-r--r-- | modules/mirror/templates/mirrordir | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mirror/templates/mirrordir b/modules/mirror/templates/mirrordir index 85b54389..5d2ad401 100644 --- a/modules/mirror/templates/mirrordir +++ b/modules/mirror/templates/mirrordir @@ -5,7 +5,7 @@ localdir="<%= localdir %>" rsync_options="<%= rsync_options %>" lockfile="<%= lockfile %>" -test -f "$lockfile" && exit +test -f "$lockfile" && echo "sync already in progress" && exit touch "$lockfile" /usr/bin/rsync $rsync_options "$remoteurl" "$localdir" rm -f "$lockfile" |