postrm is in openafs-dbserver 1.8.0~pre5-1.
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 | #! /bin/sh
set -e
# Purges the database and log files created by the package. We assume that
# it's safe to do this for database files since they're normally transferred
# via Ubik to other hosts.
if [ "$1" = 'purge' ] ; then
for file in prdb.DB0 prdb.DBSYS1 vldb.DB0 vldb.DBSYS1 ; do
rm -f "/var/lib/openafs/db/$file"
done
for file in PtLog PtLog.old VLLog VLLog.old ; do
rm -f "/var/log/openafs/$file"
done
fi
|