refs #401 removes a array for a string in template

ogboot_installer
Luis Gerardo Romero Garcia 2024-05-29 11:53:18 +02:00
parent 98768fcef7
commit 425cde6f1a
1 changed files with 3 additions and 3 deletions

View File

@ -724,11 +724,11 @@ def openGnsysConfigure():
# Para nuetra demo 172.17.8.82
print(f"{openGnsysConfigure.__name__}(): Creating OpenGnsys config files.")
CONSOLEURL = f"https://{SERVER_OPENGNSYS[i]}/opengnsys"
CONSOLEURL = f"https://{SERVER_OPENGNSYS}/opengnsys"
with open(f"{WORKDIR}/ogboot/etc/ogAdmClient.cfg") as file:
content = file.read()
content = content.replace("SERVERIP", SERVER_OPENGNSYS[i])
content = content.replace("OPENGNSYSURL", CONSOLEURL.replace("/", "\\/"))
content = content.replace("SERVERIP", SERVER_OPENGNSYS)
content = content.replace("OPENGNSYSURL", CONSOLEURL)
with open(f"{INSTALL_TARGET}/client/etc/ogAdmClient-eth0.cfg", "w") as outfile:
outfile.write(content)