Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErica Portnoy <ebportnoy@gmail.com>2020-07-22 00:13:14 +0300
committerErica Portnoy <ebportnoy@gmail.com>2020-07-22 00:13:14 +0300
commit63db51a7ee14af9bea1a33c67def5c99a7183f1f (patch)
treef065e3b0ecda71829b756e2ac5bd9e81ef31544a
parente3f12df03b56a2a617ec7456f8f5b5be5848d72e (diff)
switch to requiring certbot version >= plugin version
-rw-r--r--certbot-dns-dnsimple/snap/hooks/post-refresh5
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\