From: mitty Date: Thu, 8 Dec 2011 02:39:54 +0000 (+0000) Subject: * FIX: initial commit and then chmod repository files X-Git-Url: http://lab.mitty.jp/git/?p=lab.git;a=commitdiff_plain;h=e054fd4ff3c587a3080731de1372e3ac677b0dc1 * FIX: initial commit and then chmod repository files * FIX: ${NEWREPOS}/db: +ws -> +wX git-svn-id: https://lab.mitty.jp/svn/lab/trunk@128 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- 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"