Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / debian / openafs-fileserver.config
CommitLineData
b7cfede0
BK
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8# Warn anyone who's trying to run the file server on alpha.
9arch=`dpkg --print-architecture`
10if [ "$arch" = "alpha" ] ; then
11 db_input high openafs-fileserver/alpha-broken || true
12fi
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.
17if [ -r /etc/openafs/server/ThisCell ] ; then
18 read cell < /etc/openafs/server/ThisCell || true
19 db_set openafs-fileserver/thiscell "$cell"
20fi
21db_get openafs-fileserver/thiscell || true
22if [ "x$RET" = "x" ] ; then
23 db_get openafs-client/thiscell || true
24 db_set openafs-fileserver/thiscell "$RET"
25fi
26db_input low openafs-fileserver/thiscell || true
27db_go