From 1b6535ffee73f01b52d588250c0c95fe25e895e2 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Thu, 14 Nov 2024 09:22:49 +0100 Subject: [PATCH] Fix directory Get OGCORE BRANCH for components --- component-installer/component-installer.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/component-installer/component-installer.sh b/component-installer/component-installer.sh index 8d8f9da..57ae6e3 100644 --- a/component-installer/component-installer.sh +++ b/component-installer/component-installer.sh @@ -139,8 +139,9 @@ do install_docker install_oggui_docker ;; - ogDhcp) + ogDhcp) echo "Instalando ogDhcp..." + OGCORE_BRANCH=$(jq -r '.release' /opt/opengnsys/ogDhcp/installer/config.json) git_checkout_release "$OGDHCP_REPO" "$component_dir/repo" "$OGCORE_BRANCH" cp $CONFIGS_DIR/$config_file $component_dir/repo/config_ogdhcp.json cd $component_dir/repo/installer || exit @@ -150,6 +151,7 @@ do echo - ogDhcp >> /etc/issue ;; ogBoot) + OGCORE_BRANCH=$(jq -r '.release' /opt/opengnsys/ogBoot/installer/config.json) echo "Instalando ogBoot..." git_checkout_release "$OGBOOT_REPO" "$component_dir/repo" "$OGCORE_BRANCH" cp $CONFIGS_DIR/$config_file $component_dir/repo/config.json @@ -161,6 +163,8 @@ do ;; ogRepository) echo "Instalando ogRepository..." + OGCORE_BRANCH=$(jq -r '.release' /opt/opengnsys/ogRepository/installer/config.json) + git_checkout_release "$OGREPOSITORY_REPO" "$component_dir/repo" "$OGCORE_BRANCH" cp $CONFIGS_DIR/$config_file $component_dir/installer/config.json REPO_IP=$(jq -r '.ogrepository_ip' $component_dir/installer/config.json) OGUSER=$(jq -r '.ogrepository_samba_user' $component_dir/installer/config.json)