run_http_host_sync

This commit is contained in:
Zsolt Ero
2024-02-22 21:40:23 +01:00
parent d6f57be45f
commit 4aa4465654
2 changed files with 26 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ def append_str(c, remote_path, str_):
c.sudo(f'rm -f {tmp_path}')
def sudo_cmd(c, cmd, user=None):
def sudo_cmd(c, cmd, *, user=None):
cmd = cmd.replace('"', '\\"')
c.sudo(f'bash -c "{cmd}"', user=user)