projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only seed initial Debian package database if key file is available.
[onak.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index 5b29801b130a755874bbcaee82ce2765d59ebe40..b8fa63f5ec80dc5bffb5675ad548614db8e05d75 100644
(file)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-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 &&
#
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
zcat /usr/share/doc/onak/noodles.key | onak -b add
fi