X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Fundeploy-ric-platform;h=adeea6a04b329e97ac550fd4cd44f3a447e8cd6e;hb=00e1990cde6660b9875b312834fb58683456ec70;hp=e9e5c9f29ca2b8e422f27cbbc3c002168dc0a92c;hpb=7f1e409379856025977fc8a6ea04ddb215f21a13;p=it%2Fdep.git diff --git a/bin/undeploy-ric-platform b/bin/undeploy-ric-platform index e9e5c9f2..adeea6a0 100755 --- a/bin/undeploy-ric-platform +++ b/bin/undeploy-ric-platform @@ -16,20 +16,23 @@ # limitations under the License. # ################################################################################ -# This script deploys RIC platform components automatically +# This script deploys RIC auxiliary function components automatically +ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" +source $ROOT_DIR/../etc/ric.conf -source $DIR/../etc/ric-platform.conf +export RICPLT_RELEASE_NAME=$helm_release_name +export RICPLT_NAMESPACE=$plt_namespace -export RICPLT_RELEASE_NAME=$ric_platform_helm_release_name -export RICPLT_NAMESPACE=$ric_platform_namespace +for component in $ROOT_DIR/../ric-platform/*/; do + # Will print */ if no directories are available + . $component/bin/uninstall +done -. ../ric-platform/50-RIC-Platform/bin/uninstall