Update NEWS entries to reflect new version
[pkg-k5-afs_openafs.git] / debian / openafs-fileserver.config
blob59ede70ad850dfd923ee82555454a7d5a4886866
1 #!/bin/sh
3 set -e
5 . /usr/share/debconf/confmodule
6 db_version 2.0
8 # Warn anyone who's trying to run the file server on alpha.
9 arch=`dpkg --print-architecture`
10 if [ "$arch" = "alpha" ] ; then
11 db_input high openafs-fileserver/alpha-broken || true
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"
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"
26 db_input low openafs-fileserver/thiscell || true
27 db_go