[merged]
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Fri, 02 Sep 2011 15:46:41 +0200
changeset 28 f87fe5029832
parent 26 d2499ca376b0 (current diff)
parent 23 6c2b422b8339 (diff)
child 29 c1190fe78637
[merged]
debian/littlebird-tc-core.postinst
--- a/debian/littlebird-tc-core.postinst	Fri Sep 02 15:37:26 2011 +0200
+++ b/debian/littlebird-tc-core.postinst	Fri Sep 02 15:46:41 2011 +0200
@@ -167,8 +167,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
+	)
 
     ;;