From 223858880184f557d79bebaaef3bb73a93dd4a6c Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 8 May 2020 10:40:20 +0000 Subject: [PATCH] full_install_osm.sh: added uninstall_osmclient Change-Id: I62f6584768f25df42a4c1e681f0a8277beb4ecb6 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 7d06ba8b..ae2e1e9f 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -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 -- 2.25.1