From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- core/man-db/man-db.install | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/man-db/man-db.install (limited to 'core/man-db/man-db.install') diff --git a/core/man-db/man-db.install b/core/man-db/man-db.install new file mode 100644 index 000000000..6a0f36b67 --- /dev/null +++ b/core/man-db/man-db.install @@ -0,0 +1,18 @@ +post_install() { + echo "it's recommended to create an initial" + echo "database running as root:" + echo "\"/usr/bin/mandb --quiet\"" +} + +post_upgrade() { + if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then + echo "systemuser \"man\" is no more required" + echo "run \"userdel man\". please also" + echo "chown root:root /var/cache/man" + fi +} + +post_remove() { + rm -rf /var/cache/man +} + -- cgit v1.2.3-54-g00ecf