#!/bin/bash set -e PACKAGE_NAME=lliurex-wine-class-settings WINE_SETTINGS=/usr/bin/wine CAUTIOUS_SETTINGS=/usr/bin/cautious-launcher LLIUREX_SETTINGS=/usr/share/lliurex-wine/wine LLIUREX_CAUTIOUS_SETTINGS=/usr/share/lliurex-wine/cautious-launcher case $1 in upgrade) OLD_VERSION="$2" if [ "$OLD_VERSION" ] && dpkg --compare-versions $OLD_VERSION lt 0.3 && [ -h "${WINE_SETTINGS}" ]; then # fix broken link (due to some changes in the path where LLIUREX_SETTINGS lives ) ln -fs ${LLIUREX_SETTINGS} ${WINE_SETTINGS} fi ;; esac #DEBHELPER# exit 0