/[adm]/puppet/modules/mirror/templates/mirrordir
ViewVC logotype

Annotation of /puppet/modules/mirror/templates/mirrordir

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2309 - (hide annotations) (download)
Fri Jan 20 23:05:55 2012 UTC (10 years, 4 months ago) by misc
File size: 286 byte(s)
send a message when there is a lock in place preventing upload
1 boklm 841 #!/bin/sh
2    
3     remoteurl="<%= remoteurl%>"
4     localdir="<%= localdir %>"
5     rsync_options="<%= rsync_options %>"
6     lockfile="<%= lockfile %>"
7    
8 misc 2309 test -f "$lockfile" && echo "sync already in progress" && exit
9 boklm 841 touch "$lockfile"
10     /usr/bin/rsync $rsync_options "$remoteurl" "$localdir"
11     rm -f "$lockfile"
12    

  ViewVC Help
Powered by ViewVC 1.1.28