diff -r 3eca418209b5 -r 6c2b422b8339 debian/littlebird-tc-core.postinst --- a/debian/littlebird-tc-core.postinst Fri Sep 02 12:58:10 2011 +0200 +++ b/debian/littlebird-tc-core.postinst Fri Sep 02 15:42:50 2011 +0200 @@ -168,8 +168,14 @@ db_stop || true - a2enmod ssl - invoke-rc.d apache2 reload >&2 + ( . /etc/apache2/envvars + if ! apache2 -M 2>/dev/null | grep -q ssl_module; then + a2enmod ssl + invoke-rc.d apache2 restart >&2 + else + invoke-rc.d apache2 reload >&2 + fi + ) ;;