2014-09-10 | Paul Boddie | file changeset files shortlog | Packaging for chwala 0.2-0~kolab9 from upstream. |
paul@6 | 1 | #!/bin/sh |
paul@6 | 2 | |
paul@6 | 3 | set -e |
paul@6 | 4 | |
paul@6 | 5 | case "$1" in |
paul@6 | 6 | upgrade|install) |
paul@6 | 7 | # old version had problems with the apache conf created as directoy instead of file |
paul@6 | 8 | if [ -e "/etc/apache2/sites-available/chwala/chwala.conf" ]; then |
paul@6 | 9 | DIR=$(mktemp -d) |
paul@6 | 10 | mv /etc/apache2/sites-available/chwala/* $DIR/ |
paul@6 | 11 | rmdir /etc/apache2/sites-available/chwala/ |
paul@6 | 12 | mv $DIR/chwala.conf /etc/apache2/sites-available/chwala |
paul@6 | 13 | rmdir $DIR |
paul@6 | 14 | fi |
paul@6 | 15 | ;; |
paul@6 | 16 | esac |
paul@6 | 17 | |
paul@6 | 18 | exit 0 |