From: David Garcia Date: Mon, 8 Feb 2021 14:18:27 +0000 (+0100) Subject: Fix minor issue with permissions in Charmed Installer X-Git-Tag: v9.1.0~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F10269%2F2;p=osm%2Fdevops.git Fix minor issue with permissions in Charmed Installer Change-Id: I53068cdbfd15e357d25cb18c2c5435a69601824f Signed-off-by: David Garcia --- diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh index 92116060..3e7800e6 100755 --- a/installers/charmed_install.sh +++ b/installers/charmed_install.sh @@ -51,7 +51,7 @@ function check_arguments(){ function install_snaps(){ if [ ! -v KUBECFG ]; then sudo snap install microk8s --classic --channel=${MICROK8S_VERSION}/stable - cat /var/snap/microk8s/current/args/kube-apiserver | grep advertise-address || ( + sudo cat /var/snap/microk8s/current/args/kube-apiserver | grep advertise-address || ( echo "--advertise-address $DEFAULT_IP" | sudo tee -a /var/snap/microk8s/current/args/kube-apiserver microk8s.stop microk8s.start