X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=TipAndDoc%2Ftools%2Ftool%2Fbuildrepos.sh;h=65c824193fad913ca3fc3e48e9d08fc4cd54d6f2;hb=refs%2Fheads%2Fmaster;hp=af17132331294814b31d984580e6b8a1fdf2db56;hpb=7e593aaf4fc50d62d3f75cf040ec2ead9b668b13;p=lab.git diff --git a/TipAndDoc/tools/tool/buildrepos.sh b/TipAndDoc/tools/tool/buildrepos.sh index af17132..65c8241 100755 --- a/TipAndDoc/tools/tool/buildrepos.sh +++ b/TipAndDoc/tools/tool/buildrepos.sh @@ -30,22 +30,24 @@ svnadmin create --fs-type fsfs ${NEWREPOS} for HOOK in `ls ${HOOKSKEL}`; do ln -s ${HOOKSKEL}/${HOOK} ${NEWREPOS}/hooks done + +if [ "$3" != "-noinit" ]; then + # initial commit + svn mkdir -m "REPOS init." file://${NEWREPOS}/trunk file://${NEWREPOS}/tags file://${NEWREPOS}/branches file://${NEWREPOS}/vendor +fi + +# set permission mkdir -p ${NEWREPOS}/dav chgrp -R www-data ${NEWREPOS} -chmod -R o-rw ${NEWREPOS} -chmod -R g+ws ${NEWREPOS}/db -chmod -R g+ws ${NEWREPOS}/dav +chmod -R o-rwx ${NEWREPOS} +chmod -R g+wX ${NEWREPOS}/db +chmod g+ws ${NEWREPOS}/dav # make repos backup mkdir -p ${REPOSBACKUP}/incremental chgrp -R www-data ${REPOSBACKUP} chmod -R g+ws ${REPOSBACKUP} -if [ "$3" != "-noinit" ]; then - # initial commit - svn mkdir -m "REPOS init." file://${NEWREPOS}/trunk file://${NEWREPOS}/tags file://${NEWREPOS}/branches file://${NEWREPOS}/vendor -fi - echo "done" echo "${NEWREPOS} ${REPOSBACKUP} are created"