]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Suppress error message when no CellServDB file exists
authorRuss Allbery <rra@debian.org>
Mon, 17 Jun 2013 21:52:30 +0000 (14:52 -0700)
committerRuss Allbery <rra@debian.org>
Mon, 17 Jun 2013 21:52:30 +0000 (14:52 -0700)
debian/openafs-client.postinst

index d3a026c12d58d6b3ac05fb734c5a728d0c52cfb5..2abd51bf6047c462903a833b757799585f0a0ba0 100755 (executable)
@@ -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