From 3f1155393bf495b563b2c26b34c90a8157da0e0b Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Fri, 23 Jun 2023 11:00:46 +0200 Subject: [PATCH] fixed permissions with move step --- src/machine/machine.py | 2 -- src/main.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/machine/machine.py b/src/machine/machine.py index c6eb785..98fe55b 100644 --- a/src/machine/machine.py +++ b/src/machine/machine.py @@ -353,10 +353,8 @@ class LinuxMachine: if permission is not None: if self.is_folder(source): - permission = 755 self.run_command(f"chmod -R {permission} {destination}", return_status_code=True) else: - permission = 644 self.run_command(f"chmod {permission} {destination}", return_status_code=True) if owner != "root": diff --git a/src/main.py b/src/main.py index 1e52987..c6afd2f 100644 --- a/src/main.py +++ b/src/main.py @@ -53,3 +53,4 @@ def launch_lxc(lxc): lxc.create() lxc.start() lxc.run_creation() + logging.info(f"Finished loading LXC {lxc.id}")