# HG changeset patch # User Christian Arnold # Date 1314970970 -7200 # Node ID 6c2b422b83397fb1b8093bda703d3740c0deae13 # Parent 3eca418209b55a4f8c3e7d5d286eab1a6894a6fd next 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 + ) ;;