From 9e84fea457757483750c5f75248d881ba0c9fe99 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Mon, 8 Feb 2021 15:18:27 +0100 Subject: [PATCH] Fix minor issue with permissions in Charmed Installer Change-Id: I53068cdbfd15e357d25cb18c2c5435a69601824f Signed-off-by: David Garcia --- installers/charmed_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1