From: calvinosanc1 Date: Fri, 21 Aug 2020 10:12:52 +0000 (+0200) Subject: Change in returned storage status format from microk8s X-Git-Tag: v8.0.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=698b5b35e2715148e2f618d697d7330e49337aec;p=osm%2Fdevops.git Change in returned storage status format from microk8s Change-Id: I70a7c1ee52381f3465266d8b455cd1bc023dbf2e Signed-off-by: calvinosanc1 --- diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh index f5d1389f..4e332ed2 100755 --- a/installers/charmed_install.sh +++ b/installers/charmed_install.sh @@ -88,8 +88,8 @@ EOF sg ${KUBEGRP} -c "microk8s.status" exit 1 fi - sg ${KUBEGRP} -c "microk8s.status" | grep 'storage: enabled' - if [ $? -eq 0 ]; then + storage_status=`sg ${KUBEGRP} -c "microk8s.status -a storage"` + if [[ $storage_status == "enabled" ]]; then break fi sleep 1