2014-05-12 | Paul Boddie | file changeset files shortlog | Packaging for chwala 0.2-0~kolab8 from upstream. |
paul@3 | 1 | #!/bin/bash |
paul@3 | 2 | |
paul@3 | 3 | reload_apache() |
paul@3 | 4 | { |
paul@3 | 5 | if apache2ctl configtest 2>/dev/null; then |
paul@3 | 6 | invoke-rc.d apache2 $1 || true |
paul@3 | 7 | else |
paul@3 | 8 | echo "Your apache2 configuration is broken, so we're not restarting it for you." |
paul@3 | 9 | fi |
paul@3 | 10 | } |
paul@3 | 11 | |
paul@3 | 12 | |
paul@3 | 13 | case "$1" in |
paul@3 | 14 | remove) |
paul@3 | 15 | if [ -e "/etc/apache2/sites-enabled/chwala" ]; then |
paul@3 | 16 | a2ensite chwala |
paul@3 | 17 | fi |
paul@3 | 18 | reload_apache reload |
paul@3 | 19 | ;; |
paul@3 | 20 | esac |