Be sure to listen on both port 443 and 446
[invirt/packages/invirt-web.git] / debian / sipb-xen-www.init
index e907f53..7ce5b2a 100755 (executable)
@@ -15,7 +15,9 @@ PACKAGE=sipb-xen-www
 
 gen_config()
 {
-    mako /etc/apache2/sites-available/{ssl,svn}.mako
+  for i in /etc/apache2/sites-available/{ssl,svn}
+  do mako-render $i.mako > $i
+  done
 }
 
 case "$1" in
@@ -23,6 +25,7 @@ case "$1" in
     log_begin_msg "Reloading config for $PACKAGE"
     gen_config
     log_end_msg $?
+    /etc/init.d/apache2 "$1"
     ;;
   stop)
     ;;