diff options
Diffstat (limited to 'certbot-dns-dnsimple/snap/hooks/post-refresh')
-rw-r--r-- | certbot-dns-dnsimple/snap/hooks/post-refresh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index dd15794a4..fc1e6667b 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -7,8 +7,9 @@ if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then fi cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) -# get required certbot version for plugin -cb_required=$(grep -oP "certbot>=\K.*(?=')" $SNAP/setup.py) +# get required certbot version for plugin. certbot version must be at least the plugin's +# version. note that this is not the required version in setup.py, but the version number itself. +cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) python3 -c "import sys; from packaging import version; sys.exit(1) if\ |