interface attributes can only be set during the execution of prepare hooks

This commit is contained in:
Erica Portnoy 2020-07-13 15:17:40 -07:00
parent d853644140
commit 24bf9648f9
2 changed files with 2 additions and 6 deletions

View file

@ -1,6 +0,0 @@
#!/bin/sh -e
snapctl set :plugin certbot-version="test1"
snapctl set :certbot-version certbot-version="test2"

View file

@ -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"