From: Russ Allbery Date: Mon, 17 Jun 2013 21:52:30 +0000 (-0700) Subject: Suppress error message when no CellServDB file exists X-Git-Tag: debian/1.6.3-1~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=793d32036a0fdcfb124f34ddfb20667ace13b094;p=packages%2Fo%2Fopenafs.git Suppress error message when no CellServDB file exists --- diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index d3a026c12..2abd51bf6 100755 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -41,8 +41,10 @@ fi # prompt the user for the VLDB servers. Unfortunately, we can't do this in # config because we need the CellServDB file, which is part of the package. havecell= -if [ -n "$THISCELL" ] && grep -qF "$THISCELL" /etc/openafs/CellServDB ; then - havecell=true +if [ -n "$THISCELL" ] ; then + if grep -qF "$THISCELL" /etc/openafs/CellServDB 2>/dev/null ; then + havecell=true + fi fi if [ "$afsdb" = 'false' ] && [ -z "$havecell" ] ; then db_input critical openafs-client/cell-info || true