named-data / ppa-packaging

Semi-automated script to create binary packages for (multiple versions of) Ubuntu
Apache License 2.0
17 stars 7 forks source link

nfd: confusing ERROR in postinst #13

Closed yoursunny closed 8 years ago

yoursunny commented 8 years ago

Steps to reproduce:

  1. install nfd package on a new machine

Actual:

Setting up nfd (0.4.0~beta2-ppa1~trusty) ...
ERROR: SecPublicInfoSqlite3::getDefaultIdentity  no default identity
OK: certificate with name [/localhost/daemons/nfd/KEY/ksk-(omitted)/ID-CERT/(omitted)] has been successfully installed
nfd start/running, process (omitted)

Expected: "ERROR" line does not appear

This "ERROR" line is written by a "if [ -z "$(ndnsec-get-default)" ]" invocation. Although it's harmless, this log line causes confusion to the operator.

The stderr output of ndnsec-get-default should be redirected to /dev/null so that this "ERROR" is hidden.