If the ACL for a locker isn't accessible, assume it's empty (closes #82)
[invirt/packages/invirt-web.git] / debian / sipb-xen-www.init
index e907f53..20bc191 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,8 +25,10 @@ case "$1" in
     log_begin_msg "Reloading config for $PACKAGE"
     gen_config
     log_end_msg $?
+    /etc/init.d/apache2 "$1"
     ;;
   stop)
+    /etc/init.d/apache2 "$1"
     ;;
   *)
     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"