From 7c683ba6c5822023f152839f4b3ffa7a584cb5ac Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Wed, 1 Jul 2020 19:18:13 -0700 Subject: [PATCH] test for first install differently --- certbot-dns-dnsimple/snap/hooks/install | 1 - certbot-dns-dnsimple/snap/hooks/post-refresh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 certbot-dns-dnsimple/snap/hooks/install diff --git a/certbot-dns-dnsimple/snap/hooks/install b/certbot-dns-dnsimple/snap/hooks/install deleted file mode 100644 index f3115d391..000000000 --- a/certbot-dns-dnsimple/snap/hooks/install +++ /dev/null @@ -1 +0,0 @@ -snapctl set first-install="true" diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index d0c05c43f..7be4472a2 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -1,7 +1,7 @@ #!/bin/sh -e snapctl get first-install -if [ "$?" -eq "true"]; then +if [ "$?" -eq "1"]; then snapctl set first-install="false" exit 0 fi