#!/bin/sh
# postinst script for martian
#
# by Luigi Cotignano
# http://n900.altervista.org

case "$1" in
     configure)
	echo "Installing Martian Memory..."
	
	if [ -x /usr/bin/gtk-update-icon-cache ]; then
	  gtk-update-icon-cache -f /usr/share/icons/hicolor || true
	fi

	chown user:users /opt/martian/data/scores.dat

	echo "Martian Memory has been installed successfully."
	exit 0
	;;

     abort-upgrade|abort-remove|abort-deconfigure)
    	;;

     *)
	echo "Error: unable to install Martian Memory, postinst called with unknown argument \`$1'" >&2
	exit 1
	;;
esac

	# dh_installdeb will replace this with shell code automatically
	# generated by other debhelper scripts.
exit 0


