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)