From 95f1c8e3ad64b6f5e9ffd40b300793984e412efd Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Wed, 7 Aug 2024 15:13:30 -0400 Subject: [PATCH] restart snapd after configuring proxy removes the need to restart from preRunCommands --- controllers/cloudinit/scripts/00-configure-snapstore-proxy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/cloudinit/scripts/00-configure-snapstore-proxy.sh b/controllers/cloudinit/scripts/00-configure-snapstore-proxy.sh index ff6b5eb..34a1514 100644 --- a/controllers/cloudinit/scripts/00-configure-snapstore-proxy.sh +++ b/controllers/cloudinit/scripts/00-configure-snapstore-proxy.sh @@ -32,3 +32,5 @@ while ! snap set core proxy.store="${3}" ; do echo "Failed to configure snapd with store ID, will retry" sleep 5 done + +systemctl restart snapd