From 24bf9648f9af600e8717e683a4d48232539e1a0c Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 13 Jul 2020 15:17:40 -0700 Subject: [PATCH] interface attributes can only be set during the execution of prepare hooks --- snap/hooks/connect-plug-plugin | 6 ------ snap/hooks/prepare-plug-plugin | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 snap/hooks/connect-plug-plugin diff --git a/snap/hooks/connect-plug-plugin b/snap/hooks/connect-plug-plugin deleted file mode 100644 index c71af7441..000000000 --- a/snap/hooks/connect-plug-plugin +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -e - - - -snapctl set :plugin certbot-version="test1" -snapctl set :certbot-version certbot-version="test2" diff --git a/snap/hooks/prepare-plug-plugin b/snap/hooks/prepare-plug-plugin index ee309addf..c94cdb7c3 100644 --- a/snap/hooks/prepare-plug-plugin +++ b/snap/hooks/prepare-plug-plugin @@ -3,6 +3,8 @@ if [ "$(snapctl get trust-plugin-with-root)" = "ok" ]; then # allow the connection, but reset config to allow for other slots to go through this auth flow snapctl unset trust-plugin-with-root + snapctl set :plugin certbot-version="test1" + snapctl set :certbot-version certbot-version="test2" exit 0 else echo "Only connect this interface if you trust the plugin author to have root on the system"