summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-dehydrated-tools.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/open-infrastructure-dehydrated-tools.config')
-rw-r--r--debian/open-infrastructure-dehydrated-tools.config9
1 files changed, 6 insertions, 3 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.config b/debian/open-infrastructure-dehydrated-tools.config
index dfccb77..e795e68 100644
--- a/debian/open-infrastructure-dehydrated-tools.config
+++ b/debian/open-infrastructure-dehydrated-tools.config
@@ -53,8 +53,11 @@ db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/basedir || true
db_go
-db_settitle open-infrastructure-dehydrated-tools/title
-db_input low open-infrastructure-dehydrated-tools/register || true
-db_go
+if ! ls /var/lib/dehydrated/accounts/*/account_key.pem > /dev/null 2>&1
+then
+ db_settitle open-infrastructure-dehydrated-tools/title
+ db_input low open-infrastructure-dehydrated-tools/register || true
+ db_go
+fi
db_stop