postinst is in mirrormagic 2.0.2.0deb1-11.
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 | #!/bin/sh -e
# remove old highscore directory, if user wishes it.
if [ -d /var/lib/games/mirrormagic ]; then
. /usr/share/debconf/confmodule
db_get mirrormagic/remove_old_highscores
if [ "$RET" = "true" ]; then
rm -rf /var/lib/games/mirrormagic/*
rmdir -p --ignore-fail-on-non-empty /var/lib/games/mirrormagic || true
fi
fi
# fix permissions in highscore directories
if [ "$1" = "configure" ]; then
if dpkg --compare-versions "$2" lt-nl 2.0.0-12; then
echo "Fixing mirrormagic's high-score files permissions..."
chmod -R o-w,g+w /var/games/mirrormagic
fi
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|