fixed problem with running scripts and ssh key generation on new lxc
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9fe806882e
commit
673c7a3858
@ -61,3 +61,6 @@ fi
|
||||
|
||||
# Set PermitRootLogin to prohibit-password
|
||||
sed -i 's/^#*PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config
|
||||
|
||||
# Generate SSH keys (doesn't overwrite if keys already exists)
|
||||
ssh-keygen -q -t rsa -N '' <<< $'\nn' >/dev/null 2>&1
|
@ -362,7 +362,7 @@ class LXC(LinuxMachine):
|
||||
:param script_path:
|
||||
:return:
|
||||
"""
|
||||
return self.run_command(command=f"chmod +x {script_path} && bash {script_path}")
|
||||
return self.run_command(command=f"bash {script_path}")
|
||||
|
||||
def run_command(self, command: str, return_status_code: bool = False,
|
||||
exception_on_exit: bool = False,
|
||||
|
Loading…
Reference in New Issue
Block a user