1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/preinst Wed Sep 10 17:01:07 2014 +0200
1.3 @@ -0,0 +1,18 @@
1.4 +#!/bin/sh
1.5 +
1.6 +set -e
1.7 +
1.8 +case "$1" in
1.9 + upgrade|install)
1.10 + # old version had problems with the apache conf created as directoy instead of file
1.11 + if [ -e "/etc/apache2/sites-available/chwala/chwala.conf" ]; then
1.12 + DIR=$(mktemp -d)
1.13 + mv /etc/apache2/sites-available/chwala/* $DIR/
1.14 + rmdir /etc/apache2/sites-available/chwala/
1.15 + mv $DIR/chwala.conf /etc/apache2/sites-available/chwala
1.16 + rmdir $DIR
1.17 + fi
1.18 + ;;
1.19 +esac
1.20 +
1.21 +exit 0