Add /snap/bin in case it is missing 42/8242/4
authorDominik <dominik.fleischmann@canonical.com>
Wed, 27 Nov 2019 11:15:50 +0000 (12:15 +0100)
committermadavi <jm00553988@techmahindra.com>
Thu, 5 Dec 2019 06:30:40 +0000 (07:30 +0100)
This is a fix to bug 863
https://osm.etsi.org/bugzilla/show_bug.cgi?id=863

Change-Id: Iccbe1de7ca4a36960f450de918fcad67364b7d3d
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
installers/full_install_osm.sh

index 38e50c6..090b990 100755 (executable)
@@ -192,6 +192,7 @@ function uninstall_lightweight() {
             fi
             remove_k8s_namespace $OSM_STACK_NAME
         else
+
             remove_stack $OSM_STACK_NAME
             remove_stack osm_elk
             uninstall_prometheus_nodeexporter
@@ -693,6 +694,7 @@ function install_juju() {
     echo "Installing juju"
     sudo snap install juju --classic
     [ -z "$INSTALL_NOLXD" ] && sudo dpkg-reconfigure -p medium lxd
+    [[ ":$PATH": != *":/snap/bin:"* ]] && PATH="/snap/bin:${PATH}"
     echo "Finished installation of juju"
     return 0
 }