]> the.earth.li Git - onak.git/commitdiff
Fix issue with pre-seeding key database on Debian install
authorJonathan McDowell <noodles@earth.li>
Tue, 23 Sep 2014 15:59:34 +0000 (16:59 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 23 Sep 2014 15:59:34 +0000 (16:59 +0100)
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
debian/postinst

index 50d9eea7e8298fa77c4a7f31bf2526e953315a0e..60fe9814a52b8afdb0683cdc7205be4094695a81 100644 (file)
@@ -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 <noodles@earth.li>  Sun, 06 Oct 2013 13:18:38 +0100
 
index b8fa63f5ec80dc5bffb5675ad548614db8e05d75..c954775252a475f06c4914ca6583161b68330385 100644 (file)
@@ -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