Changeset 9d40cc9 for fedd/federation/emulab_segment.py
- Timestamp:
- Aug 26, 2012 1:04:57 PM (12 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_segment.py
-
Property
mode
changed from
100644
to100755
rd070d9f r9d40cc9 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 … … 46 47 47 48 # 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" 48 55 print >>scriptfile, "/bin/rm -rf %s" % proj_dir 49 56 # Clear and create the software directory 50 57 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 52 60 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 54 64 print >>scriptfile, 'chmod 0770 %s' % softdir 55 65 print >>scriptfile, "rm -f %s" % scriptbase -
Property
mode
changed from
Note: See TracChangeset
for help on using the changeset viewer.