Changeset 57 for confman/confman


Ignore:
Timestamp:
04/06/2006 19:44:01 (6 years ago)
Author:
ccowart
Message:

Updated some functions to support root_squash on NFS home dirs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r56 r57  
    5454 
    5555# 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. 
     57umask 022 
    5758 
    5859# And we'll set a trap: 
     
    452453                echo "Change this file to your log message." > $msg 
    453454                ${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 
    455459                for layer in $LAYERS ; do 
    456460                        conf_commit $layer $msg || return $? 
     
    464468                done 
    465469                rm -f $msg 
     470 
     471                # This is a hack to work around NFS home dirs, for now: 
     472                chmod o+rx ${WORK_PATH} 
    466473        else 
    467474                print_usage 1 
     
    819826function cleanexit { 
    820827  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 
    821833  exit 1 
    822834} 
Note: See TracChangeset for help on using the changeset viewer.