From e7a88d5f019340e40b2d0f637a8308aa46f456ef Mon Sep 17 00:00:00 2001 From: lgromero Date: Mon, 19 Aug 2024 06:34:16 +0200 Subject: [PATCH] refs #535 Escape some characters in samba perl execution --- installer/ogboot_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/ogboot_installer.py b/installer/ogboot_installer.py index a430812..e23e404 100755 --- a/installer/ogboot_installer.py +++ b/installer/ogboot_installer.py @@ -755,7 +755,7 @@ def smbConfigure(): with open(os.path.join(SAMBACFGDIR, 'smb-ogboot.conf'), 'w') as conf_file: conf_file.write(replaced_template) # Configurar y recargar Samba" - subprocess.run(["perl", "-pi", "-e", "s/WORKGROUP/OPENGNSYS/; s/server string \=.*/server string \= ogBoot Samba Server/", f"{SAMBACFGDIR}/smb.conf"]) + subprocess.run(["perl", "-pi", "-e", "s/WORKGROUP/OPENGNSYS/; s/server string \\=.*/server string \\= ogBoot Samba Server/", f"{SAMBACFGDIR}/smb.conf"]) if "smb-ogboot" not in open(f"{SAMBACFGDIR}/smb.conf").read(): with open(f"{SAMBACFGDIR}/smb.conf", "a") as file: file.write(f"include = {SAMBACFGDIR}/smb-ogboot.conf\n")