#! /bin/sh

set -e

if [ ! -d /var/games ]; then
        mkdir -p /var/games
fi

# 0.5.1-2 installed highscore file the wrong place
if [ -f /var/lib/games/gnome-breakout.scores ]; then
        mv /var/lib/games/gnome-breakout.scores /var/games/gnome-breakout.scores
fi

if [ ! -f /var/games/gnome-breakout.scores ]; then
        touch /var/games/gnome-breakout.scores
        chown root:games /var/games/gnome-breakout.scores
        chmod 0664 /var/games/gnome-breakout.scores
fi

#DEBHELPER#
