/[adm]/puppet/modules/subversion/templates/create_svn_mirror.sh
ViewVC logotype

Contents of /puppet/modules/subversion/templates/create_svn_mirror.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 813 - (show annotations) (download) (as text)
Mon Jan 17 15:24:08 2011 UTC (11 years, 5 months ago) by misc
File MIME type: application/x-sh
File size: 466 byte(s)
add a new class to do a mirror of a svn reporitory ( for display purpose with viewvc or any others )
1 #!/bin/bash
2 umask 0002
3 LOCAL_REPOS=$1
4 REMOTE_REPOS=$2
5 svnadmin create $LOCAL_REPOS
6 # needed, as svnsync complain otherwise :
7 # svnsync: Repository has not been enabled to accept revision propchanges;
8 # ask the administrator to create a pre-revprop-change hook
9 ln -s /bin/true $LOCAL_REPOS/hooks/pre-revprop-change
10 svnsync init file://$1 $2
11 # do not sync now,
12 # let cron do it or puppet will complain ( especially for long sync )
13 #svnsync synchronize file://$1

  ViewVC Help
Powered by ViewVC 1.1.28