full_install_osm.sh: added uninstall_osmclient 91/8891/6
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 8 May 2020 10:40:20 +0000 (10:40 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 13 May 2020 14:28:45 +0000 (14:28 +0000)
Change-Id: I62f6584768f25df42a4c1e681f0a8277beb4ecb6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index 7d06ba8..ae2e1e9 100755 (executable)
@@ -167,6 +167,12 @@ function remove_k8s_namespace() {
     kubectl delete ns $1
 }
 
+#Uninstall osmclient
+function uninstall_osmclient() {
+    sudo apt-get remove --purge -y python-osmclient
+    sudo apt-get remove --purge -y python3-osmclient
+}
+
 #Uninstall lightweight OSM: remove dockers
 function uninstall_lightweight() {
     if [ -n "$INSTALL_ONLY" ]; then
@@ -213,6 +219,7 @@ EONG
         $WORKDIR_SUDO rm -rf $OSM_DOCKER_WORK_DIR
         [ -z "$CONTROLLER_NAME" ] && sg lxd -c "juju destroy-controller --destroy-all-models --yes $OSM_STACK_NAME"
     fi
+    uninstall_osmclient
     echo "Some docker images will be kept in case they are used by other docker stacks"
     echo "To remove them, just run 'docker image prune' in a terminal"
     return 0