Update Debian packaging for 1.5.74
[openafs.git] / src / packaging / Debian / openafs-fileserver.config
1 #!/bin/sh
2 set -e
3
4 . /usr/share/debconf/confmodule
5
6 db_version 2.0
7
8 # Warn anyone who's trying to run the file server on alpha.
9 arch=`dpkg --print-installation-architecture`
10 if [ "$arch" = "alpha" ] ; then
11     db_input high openafs-fileserver/alpha-broken || true
12 fi
13
14 # Configure the local cell.  Ignore errors on read since it may fail if
15 # there's no newline in the file.  Default to the server ThisCell file and, if
16 # that fails, the configured client cell.
17 if [ -r /etc/openafs/server/ThisCell ] ; then
18     read cell < /etc/openafs/server/ThisCell || true
19     db_set openafs-fileserver/thiscell "$cell"
20 fi
21 db_get openafs-fileserver/thiscell || true
22 if [ "x$RET" = "x" ] ; then
23     db_get openafs-client/thiscell || true
24     db_set openafs-fileserver/thiscell "$RET"
25 fi
26 db_input low openafs-fileserver/thiscell || true
27 db_go