git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e488ba
)
give (chown) slice's .profile to slice
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sat, 6 Jul 2013 13:35:50 +0000
(15:35 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sat, 6 Jul 2013 13:35:50 +0000
(15:35 +0200)
sliver_lxc.py
patch
|
blob
|
history
diff --git
a/sliver_lxc.py
b/sliver_lxc.py
index
a4f65f0
..
3705598
100644
(file)
--- 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