Ignore:
Timestamp:
Aug 26, 2012 1:04:57 PM (12 years ago)
Author:
ABDULLA ALWABEL <abdullaalwabel@…>
Branches:
master
Children:
2f45140
Parents:
d070d9f (diff), eb117fe (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of git://fedd.deterlab.net/fedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_segment.py

    • Property mode changed from 100644 to 100755
    rd070d9f r9d40cc9  
    3030        # Configuration directories on the remote machine
    3131        proj_dir = "/proj/%s/exp/%s/tmp" % (pid, eid)
    32         softdir = "/proj/%s/software/%s" % (pid, eid)
     32        softdir_root = "/proj/%s/software/" % pid
     33        softdir = "%s/%s" % (softdir_root, eid)
    3334        # Local software dir
    3435        lsoftdir = "%s/software" % tmpdir
     
    4647
    4748        # Script the filesystem changes
     49       
     50        # Set umask to 007.  Since we are operating
     51        # within /proj, we want to permit all proj users
     52        # read and write.  This is especially necessary
     53        # since creating directory hierarchy (mkdir -p).
     54        print >>scriptfile, "umask 007"
    4855        print >>scriptfile, "/bin/rm -rf %s" % proj_dir
    4956        # Clear and create the software directory
    5057        print >>scriptfile, "/bin/rm -rf %s/*" % softdir
    51         print >>scriptfile, 'mkdir -p %s' % proj_dir
     58        print >>scriptfile, 'mkdir %s' % proj_dir
     59        print >>scriptfile, 'chmod 0770 %s' % proj_dir
    5260        if os.path.isdir(lsoftdir):
    53             print >>scriptfile, 'mkdir -p %s' % softdir
     61            print >>scriptfile, 'mkdir %s' % softdir_root
     62            print >>scriptfile, 'chmod 0770 %s' % softdir_root
     63            print >>scriptfile, 'mkdir %s' % softdir
    5464            print >>scriptfile, 'chmod 0770 %s' % softdir
    5565        print >>scriptfile, "rm -f %s" % scriptbase
Note: See TracChangeset for help on using the changeset viewer.