]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - debian/postinst
Add -c option to maxpath / sixdegrees to specify config file
[onak.git] / debian / postinst
index 5b29801b130a755874bbcaee82ce2765d59ebe40..b8fa63f5ec80dc5bffb5675ad548614db8e05d75 100644 (file)
@@ -13,7 +13,8 @@ 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 ]; then
+            [ ! -e /var/lib/onak/num_keydb -a \
+                -e /usr/share/doc/onak/noodles.key ]; then
         zcat /usr/share/doc/onak/noodles.key | onak -b add
     fi