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

Diff of /puppet/modules/mirror/templates/mirrordir

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 841 by boklm, Tue Jan 18 18:21:44 2011 UTC revision 2309 by misc, Fri Jan 20 23:05:55 2012 UTC
# Line 5  localdir="<%= localdir %>" Line 5  localdir="<%= localdir %>"
5  rsync_options="<%= rsync_options %>"  rsync_options="<%= rsync_options %>"
6  lockfile="<%= lockfile %>"  lockfile="<%= lockfile %>"
7    
8  test -f "$lockfile" && exit  test -f "$lockfile" && echo "sync already in progress" && exit
9  touch "$lockfile"  touch "$lockfile"
10  /usr/bin/rsync $rsync_options "$remoteurl" "$localdir"  /usr/bin/rsync $rsync_options "$remoteurl" "$localdir"
11  rm -f "$lockfile"  rm -f "$lockfile"

Legend:
Removed from v.841  
changed lines
  Added in v.2309

  ViewVC Help
Powered by ViewVC 1.1.28