From 4e1b2d7dd4128fb3dff39d441d31ac0efc49f7e3 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Tue, 13 Jun 2023 15:30:04 +0200 Subject: [PATCH] run script to setup ssh on lxc create --- src/lxc/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lxc/__init__.py b/src/lxc/__init__.py index d18d7b6..cb72cf9 100644 --- a/src/lxc/__init__.py +++ b/src/lxc/__init__.py @@ -311,6 +311,11 @@ class LXC: logging.info(f"Creating LXC {self.lxc_id}") proxmox_utils.run_command_on_pve(command=self.get_pct_command(create=True), warn_exit_status=True) + self.start() + + logging.info("Setting up SSH for LXC") + commands_utils.run_script(lxc=self, step={"local_path": "protected/scripts/install-config-ssh.sh"}) + def run_creation(self): """ Run the creations checks and steps