diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index f03841b43..7203486ca 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -7,13 +7,9 @@ if [ ! -f "$SNAP/certbot-shared/__init__.py" ]; then fi cb_installed=$(grep -oP "__version__ = '\K.*(?=')" $SNAP/certbot-shared/__init__.py) -echo "cb_installed: $cb_installed" >> "$SNAP_DATA/debuglog" # if we succeed -echo "cb_installed: $cb_installed" # if we fail # get required certbot version for plugin cb_required=$(grep -oP "certbot>=\K.*(?=')" $SNAP/setup.py) -echo "cb_required: $cb_required" >> "$SNAP_DATA/debuglog" -echo "cb_required: $cb_required" python3 -c "from distutils.version import LooseVersion; exit(1) if LooseVersion('$cb_installed')\ < LooseVersion('$cb_required') else exit(0)" || exit_code=$? diff --git a/certbot-dns-dnsimple/snap/snapcraft.yaml b/certbot-dns-dnsimple/snap/snapcraft.yaml index 8a35cf7c8..08d7b4fd7 100644 --- a/certbot-dns-dnsimple/snap/snapcraft.yaml +++ b/certbot-dns-dnsimple/snap/snapcraft.yaml @@ -6,10 +6,6 @@ grade: devel base: core20 adopt-info: certbot-dns-dnsimple -apps: - bash: - command: run-bash - parts: certbot-dns-dnsimple: plugin: python @@ -53,6 +49,3 @@ hooks: post-refresh: plugs: - certbot-version - pre-refresh: - plugs: - - certbot-version