diff --git a/installer/ogboot_installer.py b/installer/ogboot_installer.py index 0c757f0..4b2a35d 100755 --- a/installer/ogboot_installer.py +++ b/installer/ogboot_installer.py @@ -359,7 +359,7 @@ def og_boot_composer_install(): os.remove(composer_lock_path) install_swagger_ui() # Instalar Swagger UI - subprocess.call(["sudo", "chown", "-R", "ogboot:ogboot", f"{INSTALL_OPENGNSYS_TARGET}/public"]) + subprocess.call(["sudo", "chown", "-R", "ogboot:ogboot", f"{INSTALL_OGBOOT_TARGET}/public"]) logger.info("Application skeleton created and composer.lock file removed.") @@ -694,6 +694,9 @@ def mount_NFS(): subprocess.call(["sudo", "cp", "bin-x86_64-efi/ipxe.efi", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot"]) subprocess.call(["sudo", "chown", "-R", "tftp:ogboot", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/"]) subprocess.run(["sudo", "chmod", "-R", "775", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/"]) + os.makedirs(f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/ipxe_scripts/templates", exist_ok=True) + subprocess.call(["sudo", "cp", f"{WORKDIR}/ogboot/tftpboot/ipxe_scripts/templates/pxe_default", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/ipxe_scripts/templates"]) + def get_ip_address(interface): try: