make sure bash is installed on creation of lxc

This commit is contained in:
Mathieu Broillet 2023-06-16 16:03:39 +02:00
parent d5911f7fcb
commit 7d124cf751
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32

View File

@ -317,6 +317,10 @@ class LXC(LinuxMachine):
self.start()
# Make sure bash is installed for later use
if not self.has_program("bash"):
self.install_package("bash")
logging.info("Setting up SSH for LXC")
# self.run_script(script_path="protected/scripts/install-config-ssh.sh")
commands_utils.run_script(lxc=self, step={"local_path": "protected/scripts/install-config-ssh.sh"})