summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-dehydrated-tools.config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-28 09:57:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-28 10:28:10 +0000
commit4673fc80dddafa45ce8d577d572323eec9fdfe2e (patch)
tree8b0321145abdb8f23436ea849b865fb4f8768526 /debian/open-infrastructure-dehydrated-tools.config
parentAllowing to specify 'ALL' in dehydrated hooks preseeding. (diff)
downloadopen-infrastructure-service-tools-4673fc80dddafa45ce8d577d572323eec9fdfe2e.tar.xz
open-infrastructure-service-tools-4673fc80dddafa45ce8d577d572323eec9fdfe2e.zip
Run dehydration registration only when no account is already present.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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