X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Fdeploy-nonrtric;h=2b883639c5902e7ea7e01f4d55cffb831424dcf7;hb=refs%2Fchanges%2F44%2F13044%2F1;hp=e0c3306047a6f3d688df9db529b93be0a09c5869;hpb=1fd14f960d45794d4b87135ba2e2e72244987f03;p=it%2Fdep.git diff --git a/bin/deploy-nonrtric b/bin/deploy-nonrtric index e0c33060..2b883639 100755 --- a/bin/deploy-nonrtric +++ b/bin/deploy-nonrtric @@ -52,22 +52,22 @@ fi if ! command -v yq > /dev/null 2>&1; then echo "yq is not installed. Installing yq..." - sudo snap install yq --channel=v3/stable + sudo snap install yq --channel=v4/stable fi -INSTALL_KONG=$(yq read "$OVERRIDEYAML" 'nonrtric.installKong') +INSTALL_KONG=$(cat $OVERRIDEYAML | yq e '.nonrtric.installKong' -) if [ $? -ne 0 ] || [ -z "$INSTALL_KONG" ]; then echo "Error: failed to parse installKong from YAML with yq. Aborting install." exit 1 fi -INSTALL_CAPIF=$(yq read "$OVERRIDEYAML" 'nonrtric.installCapifcore') +INSTALL_CAPIF=$(cat $OVERRIDEYAML | yq e '.nonrtric.installCapifcore' -) if [ $? -ne 0 ] || [ -z "$INSTALL_CAPIF" ]; then echo "Error: failed to parse installCapifcore from YAML with yq. Aborting install." exit 1 fi -INSTALL_SERVICEMANAGER=$(yq read "$OVERRIDEYAML" 'nonrtric.installServicemanager') +INSTALL_SERVICEMANAGER=$(cat $OVERRIDEYAML | yq e '.nonrtric.installServicemanager' -) if [ $? -ne 0 ] || [ -z "$INSTALL_SERVICEMANAGER" ]; then echo "Error: failed to parse installServicemanager from YAML with yq. Aborting install." exit 1