From 793d32036a0fdcfb124f34ddfb20667ace13b094 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 17 Jun 2013 14:52:30 -0700 Subject: [PATCH] Suppress error message when no CellServDB file exists --- debian/openafs-client.postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5