Adding a recursive clone if ranpm is enabled 61/13561/1
authorlapentafd <francesco.lapenta@est.tech>
Tue, 8 Oct 2024 14:45:12 +0000 (15:45 +0100)
committerlapentafd <francesco.lapenta@est.tech>
Tue, 8 Oct 2024 14:45:16 +0000 (15:45 +0100)
The recursive clone will download ranpm directory and it can be deployed via rappmanager installation script

Issue-ID: NONRTRIC-1007
Change-Id: I30ebe35ed711dade3e6a3697308c7f54d03f9ef4
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
scripts/install/install-nonrtric.sh

index 3fc436b..8c84c96 100755 (executable)
 
 echo "######### Installing NONRTRIC components #########"
 
-git clone "https://gerrit.o-ran-sc.org/r/it/dep"
-
 ENABLED_SERVICES=(installPms installA1controller installA1simulator installInformationservice installrAppmanager installDmeParticipant installCapifcore installServicemanager installKong)
 DISABLED_SERVICES=(installControlpanel installRappcatalogueservice installRappcatalogueenhancedservice installNonrtricgateway installDmaapadapterservice installDmaapmediatorservice installHelmmanager installOrufhrecovery installRansliceassurance installRanpm)
 
+if [[ "${ENABLED_SERVICES[@]}" =~ "installRanpm" ]]; then
+    git clone --recursive "https://gerrit.o-ran-sc.org/r/it/dep"
+else
+    git clone "https://gerrit.o-ran-sc.org/r/it/dep"
+fi
+
 RECEIPE_FILE="dep/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml"
 
 for element in "${ENABLED_SERVICES[@]}"; do