From 3f270e07d46bd600e158fa74e1d66a7b2e59e6c1 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 6 Nov 2024 12:28:07 +0100 Subject: [PATCH] Fixing bug in ogprovision --- provision_oggui.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/provision_oggui.sh b/provision_oggui.sh index 7aba4d8..678be15 100644 --- a/provision_oggui.sh +++ b/provision_oggui.sh @@ -8,10 +8,10 @@ ENV_FILE=$ENV_DIR/.env mkdir -p $ENV_DIR # Comprobar si ya se ha instalado ogCore -#if [ -f /opt/opengnsys/ogGui/installer/.deployed ]; then -# echo "ogCore ya instalado" -# exit 0 -#fi +if [ -f /opt/opengnsys/ogGui/installer/.deployed ]; then + echo "ogCore ya instalado" + exit 0 +fi # Sacar la IP del ogCore de la configuración ogcore_ip=$(jq -r '.ogcore_ip' /opt/opengnsys/ogGui/installer/config.json) @@ -28,6 +28,7 @@ if [ -z "$ogcore_ip" ]; then ogcore_ip=$ip_address # Si no se ha configurado la IP del ogCore, se escribe en el fichero .env echo "NG_APP_BASE_API_URL=https://$ogcore_ip:8443" > $ENV_FILE + touch /opt/opengnsys/ogGui/installer/.deployed exit 0 else echo "No se pudo determinar el interfaz asociado a la ruta por defecto."