fixed permissions with move step
This commit is contained in:
parent
6bd216615d
commit
3f1155393b
@ -353,10 +353,8 @@ class LinuxMachine:
|
|||||||
|
|
||||||
if permission is not None:
|
if permission is not None:
|
||||||
if self.is_folder(source):
|
if self.is_folder(source):
|
||||||
permission = 755
|
|
||||||
self.run_command(f"chmod -R {permission} {destination}", return_status_code=True)
|
self.run_command(f"chmod -R {permission} {destination}", return_status_code=True)
|
||||||
else:
|
else:
|
||||||
permission = 644
|
|
||||||
self.run_command(f"chmod {permission} {destination}", return_status_code=True)
|
self.run_command(f"chmod {permission} {destination}", return_status_code=True)
|
||||||
|
|
||||||
if owner != "root":
|
if owner != "root":
|
||||||
|
@ -53,3 +53,4 @@ def launch_lxc(lxc):
|
|||||||
lxc.create()
|
lxc.create()
|
||||||
lxc.start()
|
lxc.start()
|
||||||
lxc.run_creation()
|
lxc.run_creation()
|
||||||
|
logging.info(f"Finished loading LXC {lxc.id}")
|
||||||
|
Loading…
Reference in New Issue
Block a user