From 7025eebc528d48c1da67802b7486c7f3e20a64e9 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 26 Mar 2025 14:03:19 +0100 Subject: [PATCH] Fixing routes --- debian/ogboot.install | 2 +- debian/ogboot.postinst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/ogboot.install b/debian/ogboot.install index 4a957c6..10f6d0e 100644 --- a/debian/ogboot.install +++ b/debian/ogboot.install @@ -1,4 +1,4 @@ -api /opt/opengnsys/ogboot/api +api /opt/opengnsys/ogboot etc /opt/opengnsys/ogboot lib /opt/opengnsys/ogboot bin /opt/opengnsys/ogboot diff --git a/debian/ogboot.postinst b/debian/ogboot.postinst index 36434ad..c2997c1 100755 --- a/debian/ogboot.postinst +++ b/debian/ogboot.postinst @@ -7,7 +7,7 @@ set -e . /usr/share/debconf/confmodule # Leer las variables de configuración -OGBOOT_DIR="/opt/opengnsys/ogboot" +OGBOOT_DIR="/opt/opengnsys/ogboot/api" db_get opengnsys/ogboot_ip OGBOOT_IP="$RET" db_get opengnsys/ogboot_port @@ -28,7 +28,7 @@ IPXE_REPO="https://github.com/ipxe/ipxe.git" USER="opengnsys" USER_INFO=$(getent passwd "$USER") DEFAULT_OGLIVE=$OGCORE_OGLIVE_URL -ENV_FILE=/opt/opengnsys/ogboot/.env.local.php +ENV_FILE=/opt/opengnsys/ogboot/api/.env.local.php if [ -z "$USER_INFO" ]; then echo "Error: El usuario '$USER' no existe." >&2 exit 1