2 # postrm script for openafs-fileserver
4 # Purges various extra configuration files and data files created by the
5 # package. Whether to purge KeyFile is a bit iffy since the user created it
6 # with asetkey or with bos addkey, but it always exists for any running server
7 # and we shouldn't be losing any critical data.
9 # We intentionally don't remove NetInfo and NetRestrict in
10 # /var/lib/openafs/local since those are created separately by the user and
11 # may contain information not stored elsewhere.
17 for file in CellServDB CellServDB.old KeyFile ThisCell UserList ; do
18 rm -f "/etc/openafs/server/$file"
20 for file in SALVAGE.fs fssync.sock salvage.lock sysid sysid.old ; do
21 rm -f "/var/lib/openafs/local/$file"
23 rm -f /etc/openafs/BosConfig
24 for file in BosLog FileLog SalvageLog VolserLog ; do
25 rm -f "/var/log/openafs/$file"
26 rm -f "/var/log/openafs/$file.old"
29 # Clean up after files left behind from older versions of the package.
30 if [ -d /etc/openafs/server-local ] ; then
31 for file in SALVAGE.fs fssync.sock salvage.lock sysid sysid.old ; do
32 rm -f "/etc/openafs/server-local/$file"
34 rmdir --ignore-fail-on-non-empty /etc/openafs/server-local
38 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42 echo "postrm called with unknown argument \`$1'" >&2