From edad848cbda141628e4318425c1b1be0953aca96 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 23 Sep 2014 16:59:34 +0100 Subject: [PATCH] Fix issue with pre-seeding key database on Debian install The test for my key didn't include the .gz file extension, so the key database wasn't getting created upon initial install. --- debian/changelog | 1 + debian/postinst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 50d9eea..60fe981 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ onak (0.4.2-1+git) unstable; urgency=low * Development build + * Fix issue with pre-seeding key database on install. -- Jonathan McDowell Sun, 06 Oct 2013 13:18:38 +0100 diff --git a/debian/postinst b/debian/postinst index b8fa63f..c954775 100644 --- a/debian/postinst +++ b/debian/postinst @@ -14,7 +14,7 @@ if [ "$1" = "configure" ]; then if grep -q "^db_dir /var/lib/onak" /etc/onak.conf && grep -q "^db_backend db4" /etc/onak.conf && [ ! -e /var/lib/onak/num_keydb -a \ - -e /usr/share/doc/onak/noodles.key ]; then + -e /usr/share/doc/onak/noodles.key.gz ]; then zcat /usr/share/doc/onak/noodles.key | onak -b add fi -- 2.39.5