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"