#!/bin/sh

SCOREFILE="/var/games/methane.scores"

if [ "x$2" = "xPOST-INSTALL" ]; then
	mkdir -p /var/games
	touch $SCOREFILE
	chown root:games $SCOREFILE
	chmod 664 $SCOREFILE
fi

if [ "x$2" = "xPOST-DEINSTALL" ]; then
	if [ ! -s $SCOREFILE ]; then
		rm -f $SCOREFILE
	fi
fi
