#! /bin/sh # postinst script for bastet set -e # Automatically added by dh_installtmpfiles/13.31 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "$(command -v systemd-tmpfiles)" ]; then systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create bastet.conf || true fi fi # End automatically added section oldscores=/var/games/bastet.scores deal_with_old_score_file () { if [ "$1" = "remove" ] ; then rm $oldscores fi } . /usr/share/debconf/confmodule if [ -e "$oldscores" ] ; then db_get bastet/score_file_compatibility deal_with_old_score_file $RET fi