X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharmed_uninstall.sh;h=386cb0499992a13d3a24810e4f74bdbaf526ee6e;hb=abef99c585c997ec39a2eba77cca75edef9880fd;hp=ef2b293cf3397b86961ce636f50a30741c416377;hpb=3749e31006f1e6a84533d6a2b616b22f0220d822;p=osm%2Fdevops.git diff --git a/installers/charmed_uninstall.sh b/installers/charmed_uninstall.sh index ef2b293c..386cb049 100755 --- a/installers/charmed_uninstall.sh +++ b/installers/charmed_uninstall.sh @@ -15,6 +15,17 @@ juju destroy-model osm --destroy-storage -y -juju destroy-model test --destroy-storage -y sudo snap unalias osm sudo snap remove osmclient +CONTROLLER_NAME="osm-vca" +CONTROLLER_PRESENT=$(juju controllers 2>/dev/null| grep ${CONTROLLER_NAME} | wc -l) +if [[ $CONTROLLER_PRESENT -ge 1 ]]; then + cat << EOF +The VCA with the name "${CONTROLLER_NAME}" has been left in place to ensure that no other +applications are using it. If you are sure you wish to remove this controller, +please execute the following command: + + juju destroy-controller --release-storage --destroy-all-models -y ${CONTROLLER_NAME} + +EOF +fi