Changeset 128 in lab


Ignore:
Timestamp:
Dec 8, 2011 11:39:54 AM (12 years ago)
Author:
mitty
Message:
  • FIX: initial commit and then chmod repository files
  • FIX: ${NEWREPOS}/db: +ws -> +wX
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TipAndDoc/tools/tool/buildrepos.sh

    r117 r128  
    3131  ln -s ${HOOKSKEL}/${HOOK} ${NEWREPOS}/hooks 
    3232done 
     33 
     34if [ "$3" != "-noinit" ]; then 
     35    # initial commit 
     36    svn mkdir -m "REPOS init." file://${NEWREPOS}/trunk file://${NEWREPOS}/tags file://${NEWREPOS}/branches file://${NEWREPOS}/vendor 
     37fi 
     38 
     39# set permission 
    3340mkdir -p ${NEWREPOS}/dav 
    3441chgrp -R www-data ${NEWREPOS} 
    35 chmod -R o-rw ${NEWREPOS} 
    36 chmod -R g+ws ${NEWREPOS}/db 
    37 chmod -R g+ws ${NEWREPOS}/dav 
     42chmod -R o-rwx ${NEWREPOS} 
     43chmod -R g+wX ${NEWREPOS}/db 
     44chmod    g+ws ${NEWREPOS}/dav 
    3845 
    3946# make repos backup 
     
    4249chmod -R g+ws ${REPOSBACKUP} 
    4350 
    44 if [ "$3" != "-noinit" ]; then 
    45     # initial commit 
    46     svn mkdir -m "REPOS init." file://${NEWREPOS}/trunk file://${NEWREPOS}/tags file://${NEWREPOS}/branches file://${NEWREPOS}/vendor 
    47 fi 
    48  
    4951 
    5052echo "done" 
Note: See TracChangeset for help on using the changeset viewer.