Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / debian / openafs-fileserver.config
1 #!/bin/sh
2
3 set -e
4
5 . /usr/share/debconf/confmodule
6 db_version 2.0
7
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
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