X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=37055986dd34ad82073f6e2542b46dd2bddbb86f;hb=ceae8bc56f3f46d5913ca8988b701337a35135cf;hp=a4f65f00b9aecd7def5c83190327c0d0284d4896;hpb=4e488ba339356a898cf7d42f22e4224f7ec07428;p=nodemanager.git diff --git a/sliver_lxc.py b/sliver_lxc.py index a4f65f0..3705598 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -229,6 +229,10 @@ unset pathmunge if not found: with open(from_root,"a") as user_profile: user_profile.write(enforced_line) + # in case we create the slice's .profile when writing + if from_root.find("/home")>=0: + command=['chown','%s:slices'%name,from_root] + logger.log_call(command,timeout=5) # Lookup for xid and create template after the user is created so we # can get the correct xid based on the name of the slice