refs #401 fix replace in samba template

pull/4/head
Luis Gerardo Romero Garcia 2024-05-29 11:57:34 +02:00
parent 425cde6f1a
commit cd49c1c6b7
1 changed files with 1 additions and 1 deletions

View File

@ -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)