summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-dehydrated-tools.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/open-infrastructure-dehydrated-tools.postinst')
-rwxr-xr-xdebian/open-infrastructure-dehydrated-tools.postinst13
1 files changed, 8 insertions, 5 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.postinst b/debian/open-infrastructure-dehydrated-tools.postinst
index fdf39dc..16f1e4d 100755
--- a/debian/open-infrastructure-dehydrated-tools.postinst
+++ b/debian/open-infrastructure-dehydrated-tools.postinst
@@ -143,11 +143,14 @@ case "${1}" in
Install "${BASEDIR}" "${NEW_BASEDIR}"
fi
- case "${REGISTER}" in
- true)
- dehydrated --register --accept-terms
- ;;
- esac
+ if ! ls /var/lib/dehydrated/accounts/*/account_key.pem > /dev/null 2>&1
+ then
+ case "${REGISTER}" in
+ true)
+ dehydrated --register --accept-terms
+ ;;
+ esac
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)