postrm is in openafs-fileserver 1.6.15-1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/bin/sh
set -e
# Purge 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.
if [ "$1" = 'purge' ] ; then
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
for file in BosLog FileLog SalvageLog VolserLog ; do
rm -f "/var/log/openafs/$file"
rm -f "/var/log/openafs/$file.old"
done
fi
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d openafs-fileserver remove >/dev/null
fi
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask openafs-fileserver.service >/dev/null
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge openafs-fileserver.service >/dev/null
deb-systemd-helper unmask openafs-fileserver.service >/dev/null
fi
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
|