Changeset 57
- Timestamp:
- 04/06/2006 19:44:01 (6 years ago)
- Location:
- confman
- Files:
-
- 2 edited
-
confman (modified) (4 diffs)
-
confmanlib.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r56 r57 54 54 55 55 # Let's make sure that only you can read your working copy 56 umask 077 56 # Have to make this less restrictive due to NFS home dirs. 57 umask 022 57 58 58 59 # And we'll set a trap: … … 452 453 echo "Change this file to your log message." > $msg 453 454 ${EDITOR} $msg 454 #local msg="${msg} --`whoami`" 455 456 # This is a hack to work around NFS home dirs, for now: 457 chmod o+rx ${WORK_PATH} 458 455 459 for layer in $LAYERS ; do 456 460 conf_commit $layer $msg || return $? … … 464 468 done 465 469 rm -f $msg 470 471 # This is a hack to work around NFS home dirs, for now: 472 chmod o+rx ${WORK_PATH} 466 473 else 467 474 print_usage 1 … … 819 826 function cleanexit { 820 827 rm -f /tmp/confman* 828 829 # And in case we got an interrupt during a rollout, we still want the 830 # permissions here to be in a consistent state. 831 chmod 700 ${WORK_PATH} 832 821 833 exit 1 822 834 } -
confman/confmanlib.sh
r54 r57 12 12 local path=`echo ${WORK_PATH} | sed -E 's:/[^/]+$::'` 13 13 mkdir -p ${WORK_PATH} 14 15 # This makes sure nobody can enter your working copy. We relax the 16 # permissions during the rollout, and restrict them again at the end. 17 chmod 700 ${WORK_PATH} 18 14 19 svn checkout ${REPO_URI} ${WORK_PATH} 15 20 rm -rf ${path}/.svn
Note: See TracChangeset
for help on using the changeset viewer.
