X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=97374977ca687f15d83dc74184df5b1b38c0365e;hb=83a563b8ca292a68f490c91224605e758649d3a6;hp=c425a4c2333312c40e8d7f6f59b10c55b8438509;hpb=cb66b335c378068815c466fc752b65577d77b886;p=nodemanager.git diff --git a/sliver_lxc.py b/sliver_lxc.py index c425a4c..9737497 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -117,8 +117,6 @@ class Sliver_LXC(Sliver_Libvirt, Initscript): arch = 'i686' - - refImgDir = os.path.join(Sliver_LXC.REF_IMG_BASE_DIR, vref) containerDir = os.path.join(Sliver_LXC.CON_BASE_DIR, name) @@ -182,7 +180,7 @@ class Sliver_LXC(Sliver_Libvirt, Initscript): 'ssh-keygen -t rsa -N "" -f /home/{}/.ssh/id_rsa'.format(name)] logger.log_call(command) - command = ['chown', '-R', '{}.slices'.format(name), '/home/{}/.ssh'.format(name)] + command = ['chown', '-R', '{}:slices'.format(name), '/home/{}/.ssh'.format(name)] logger.log_call(command) command = ['mkdir', '{}/root/.ssh'.format(containerDir)]