* FIX: ${NEWREPOS}/db: +ws -> +wX
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@128
7d2118f6-f56c-43e7-95a2-
4bb3031d96e7
for HOOK in `ls ${HOOKSKEL}`; do
ln -s ${HOOKSKEL}/${HOOK} ${NEWREPOS}/hooks
done
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}
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}
# 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"
echo "done"
echo "${NEWREPOS} ${REPOSBACKUP} are created"