fixed permissions with move step

This commit is contained in:
Mathieu Broillet 2023-06-23 11:00:46 +02:00
parent 6bd216615d
commit 3f1155393b
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32
2 changed files with 1 additions and 2 deletions

View File

@ -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":

View File

@ -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}")