diff options
author | root <root@rshg047.dnsready.net> | 2011-04-12 10:53:36 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-12 10:53:36 +0000 |
commit | 28b5bbf3fee0627993658e096eadab71c2779912 (patch) | |
tree | b799e892101aaaedafdcf1315c4def0ff6bdc1c4 /testing/man-db/man-db.install | |
parent | cabd4a9c1f8304f0d57005b9f31231fc191c8778 (diff) |
Tue Apr 12 10:53:36 UTC 2011
Diffstat (limited to 'testing/man-db/man-db.install')
-rw-r--r-- | testing/man-db/man-db.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/man-db/man-db.install b/testing/man-db/man-db.install new file mode 100644 index 000000000..6a0f36b67 --- /dev/null +++ b/testing/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 +} + |