Changeset be1742d


Ignore:
Timestamp:
Aug 23, 2012 4:13:57 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
eb117fe
Parents:
6843d14
Message:

Prefer the multiple chmods to the uname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_segment.py

    r6843d14 rbe1742d  
    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
     
    5556        # Clear and create the software directory
    5657        print >>scriptfile, "/bin/rm -rf %s/*" % softdir
    57         print >>scriptfile, 'mkdir -p %s' % proj_dir
     58        print >>scriptfile, 'mkdir %s' % proj_dir
     59        print >>scriptfile, 'chmod 0770 %s' % proj_dir
    5860        if os.path.isdir(lsoftdir):
    59             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
    6064            print >>scriptfile, 'chmod 0770 %s' % softdir
    6165        print >>scriptfile, "rm -f %s" % scriptbase
Note: See TracChangeset for help on using the changeset viewer.