* Use LSB logging functions for openafs-fileserver and support passing
arguments to bosserver in /etc/default/openafs-fileserver by setting
DAEMON_ARGS.
+ * Clean up more completely after a purge of openafs-fileserver. Remove
+ the files created by the server in /var/lib/openafs/local, remove
+ KeyFile and CellServDB.old from /etc/openafs/server, and remove
+ BosConfig from /etc/openafs.
- -- Russ Allbery <rra@debian.org> Thu, 21 Jun 2007 07:16:37 -0700
+ -- Russ Allbery <rra@debian.org> Wed, 27 Jun 2007 07:32:58 -0700
openafs (1.4.4.dfsg1-4) unstable; urgency=low
#! /bin/sh
-# postrm script for openafs
+# postrm script for openafs-fileserver
#
-# see: dh_installdeb(1)
+# Purges various extra configuration files and data files created by the
+# package. Whether to purge KeyFile is a bit iffy since the user created it
+# with asetkey or with bos addkey, but it always exists for any running server
+# and we shouldn't be losing any critical data.
+#
+# We intentionally don't remove NetInfo and NetRestrict in
+# /var/lib/openafs/local since those are created separately by the user and
+# may contain information not stored elsewhere.
set -e
-# summary of how this script can be called:
-# * <postrm> `remove'
-# * <postrm> `purge'
-# * <old-postrm> `upgrade' <new-version>
-# * <new-postrm> `failed-upgrade' <old-version>
-# * <new-postrm> `abort-install'
-# * <new-postrm> `abort-install' <old-version>
-# * <new-postrm> `abort-upgrade' <old-version>
-# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
-# for details, see /usr/share/doc/packaging-manual/
-
case "$1" in
purge)
- rm /etc/openafs/server/ThisCell 2>/dev/null || true
- (cd /etc/openafs/server && rm CellServDB UserList) 2>/dev/null ||true
- (cd /etc/openafs/server-local && rm BosConfig) 2>/dev/null ||true
+ for file in CellServDB CellServDB.old KeyFile ThisCell UserList ; do
+ rm -f "/etc/openafs/server/$file"
+ done
+ for file in SALVAGE.fs fssync.sock salvage.lock sysid sysid.old ; do
+ rm -f "/var/lib/openafs/local/$file"
+ done
+ rm -f /etc/openafs/BosConfig
;;
- remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-
- ;;
-
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 0
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+*)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 0
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#