From a005dec399aa3367cec52f9b1efbd2a35120a890 Mon Sep 17 00:00:00 2001 From: lgromero Date: Wed, 23 Oct 2024 07:44:17 +0200 Subject: [PATCH] refs #1026 uses the variable ogboot_ip in the installer, removes the use of the old get interface and ip address by traffic. Now we can configure the ogboot ip and use it in nginx and ipxe compilation --- installer/ogboot_installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/ogboot_installer.py b/installer/ogboot_installer.py index 9fe6a87..a98e28d 100755 --- a/installer/ogboot_installer.py +++ b/installer/ogboot_installer.py @@ -538,7 +538,7 @@ def get_ip_address(interface): return None def generate_ipxe_script(): - ip_address_server = get_ip_address(DEFAULTDEV) + ip_address_server = OGBOOT_IP template = os.path.join(REPO_DIR, "etc/dhcp_boot.ipxe.tmpl") ipxe_output = f"{INSTALL_OGBOOT_TARGET}/tftpboot/ipxe_scripts/dhcp_boot.ipxe" os.makedirs(os.path.dirname(ipxe_output), mode=0o775, exist_ok=True) @@ -618,7 +618,7 @@ def smbConfigure(): def setup_nginx(): try: # Obtener la IP del servidor - ip_address_server = get_ip_address(DEFAULTDEV) + ip_address_server = OGBOOT_IP php_version = get_php_fpm_version() # Leer y modificar la plantilla de configuración de nginx