From: Jonathan McDowell Date: Tue, 23 Sep 2014 15:59:34 +0000 (+0100) Subject: Fix issue with pre-seeding key database on Debian install X-Git-Tag: onak-0.4.3~6 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=edad848cbda141628e4318425c1b1be0953aca96;p=onak.git 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. --- 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