X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=db6c6b806fc2ae452cccab29d219ccc592edcee9;hb=ae83590e29098fe6e8425f67d830e832fee460e1;hp=40120c20c1fb625e78af617caf20fe16150f8dac;hpb=4d4e858777b67fe7311e8224c55429d3db325fed;p=nodemanager.git diff --git a/sliver_lxc.py b/sliver_lxc.py index 40120c2..db6c6b8 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -127,7 +127,7 @@ pathmunge /bin after pathmunge /sbin after unset pathmunge """ - with open(dot_profile,'w') as f: + with open(pl_profile,'w') as f: f.write("export PS1='%s@\H \$ '\n"%(name)) f.write("%s\n"%ld_preload_msg) f.write("export LD_PRELOAD=/etc/planetlab/lib/bind_public.so\n") @@ -137,7 +137,7 @@ unset pathmunge # make sure this file is sourced from both root's and slice's .profile enforced_line = "[ -f /etc/planetlab.profile ] && source /etc/planetlab.profile\n" for path in [ 'root/.profile', 'home/%s/.profile'%name ]: - from_root=os.path,join(containerDir,path) + from_root=os.path.join(containerDir,path) found=False try: contents=file(from_root).readlnes()