From cd49c1c6b751bb0fbae072a1d0a802ad45a8711d Mon Sep 17 00:00:00 2001 From: lgromero Date: Wed, 29 May 2024 11:57:34 +0200 Subject: [PATCH] refs #401 fix replace in samba template --- 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 6ee24f5..51258df 100755 --- a/installer/ogboot_installer.py +++ b/installer/ogboot_installer.py @@ -819,7 +819,7 @@ def smbConfigure(): # Copiar plantilla de recursos para OpenGnsys with open(os.path.join(WORKDIR, 'ogboot/etc/smb-ogboot.conf.tmpl'), 'r') as tmpl_file: template = tmpl_file.read() - replaced_template = template.replace('OGBOOTDIR', INSTALL_OPENGNSYS_TARGET) + replaced_template = template.replace('__OGBOOTDIR__', INSTALL_OPENGNSYS_TARGET) with open(os.path.join(SAMBACFGDIR, 'smb-ogboot.conf'), 'w') as conf_file: conf_file.write(replaced_template)