From 698b5b35e2715148e2f618d697d7330e49337aec Mon Sep 17 00:00:00 2001 From: calvinosanc1 Date: Fri, 21 Aug 2020 12:12:52 +0200 Subject: [PATCH] Change in returned storage status format from microk8s Change-Id: I70a7c1ee52381f3465266d8b455cd1bc023dbf2e Signed-off-by: calvinosanc1 --- installers/charmed_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1