From 68bbad681e5235a757fb1ef2b3ddd6b585cd8a5f Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 12 Nov 2025 09:22:29 +0100 Subject: [PATCH] Add logUrl as new value --- debian/oggui.postinst | 4 +++- debian/oggui.templates | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/oggui.postinst b/debian/oggui.postinst index 0346f22..996fe05 100644 --- a/debian/oggui.postinst +++ b/debian/oggui.postinst @@ -9,6 +9,8 @@ db_get opengnsys/oggui_ogcoreUrl OGCORE_URL="$RET" db_get opengnsys/oggui_ogmercureUrl OGMERCURE_URL="$RET" +db_get opengnsys/oggui_oglogUrl +OGLOG_URL="$RET" # Asegurarse de que el usuario exista USER="opengnsys" @@ -35,7 +37,7 @@ restore_config_if_modified() { # Detectar si es una instalación nueva o una actualización if [ "$1" = "configure" ] && [ -z "$2" ]; then - jq --arg apiUrl "$OGCORE_URL" --arg mercureUrl "$OGMERCURE_URL" '.apiUrl = $apiUrl | .mercureUrl = $mercureUrl' "$CONFIG_FILE" > "${CONFIG_FILE}.tmp" && mv "${CONFIG_FILE}.tmp" "$CONFIG_FILE" + jq --arg apiUrl "$OGCORE_URL" --arg mercureUrl "$OGMERCURE_URL" --arg logUrl "$OGLOG_URL" '.apiUrl = $apiUrl | .mercureUrl = $mercureUrl | .logUrl = $logUrl' "$CONFIG_FILE" > "${CONFIG_FILE}.tmp" && mv "${CONFIG_FILE}.tmp" "$CONFIG_FILE" ln -s /opt/opengnsys/oggui/etc/nginx/oggui.conf /etc/nginx/sites-enabled/oggui.conf ln -s $CONFIG_FILE /opt/opengnsys/oggui/etc/config.json mkdir -p /etc/nginx/certs/ diff --git a/debian/oggui.templates b/debian/oggui.templates index dc0d172..21f5cd0 100644 --- a/debian/oggui.templates +++ b/debian/oggui.templates @@ -7,3 +7,8 @@ Template: opengnsys/oggui_ogmercureUrl Type: string Default: https://127.0.0.1:3000/.well-known/mercure Description: Introduzca el endpoint de mercure + +Template: opengnsys/oggui_oglogUrl +Type: string +Default: https://127.0.0.1:3030/ +Description: Oglog Grafana URL \ No newline at end of file