- Timestamp:
- Aug 23, 2012 4:13:57 PM (12 years ago)
- Branches:
- master
- Children:
- eb117fe
- Parents:
- 6843d14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_segment.py
r6843d14 rbe1742d 30 30 # Configuration directories on the remote machine 31 31 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) 33 34 # Local software dir 34 35 lsoftdir = "%s/software" % tmpdir … … 55 56 # Clear and create the software directory 56 57 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 58 60 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 60 64 print >>scriptfile, 'chmod 0770 %s' % softdir 61 65 print >>scriptfile, "rm -f %s" % scriptbase
Note: See TracChangeset
for help on using the changeset viewer.