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"