Update nss-pgsql.conf.mako to reflect new (more sane) config file
[invirt/packages/invirt-console.git] / debian / sipb-xen-console.init
index 9deced5..026eb1e 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 ### BEGIN INIT INFO
 # Provides:          sipb-xen-console
 # Required-Start:    $local_fs $remote_fs
@@ -37,15 +37,13 @@ SCRIPTNAME=/etc/init.d/$NAME
 
 gen_config()
 {
-        (for i in $(invirt-getconf --ls hosts); do
-               hostname=$(invirt-getconf hosts.$i.hostname)
-               echo "#include /etc/conserver/conf.d/$hostname"
-       done) >/etc/conserver/invirt-hosts.cf
-       realm=$(invirt-getconf authn.0.realm)
-        (for i in $(invirt-getconf --ls hosts); do
-               hostname=$(invirt-getconf hosts.$i.hostname)
-               echo "host/$hostname@$realm"
-       done) >/etc/remctl/acl/invirt-console
+    for i in /etc/conserver/invirt-hosts.cf \
+             /etc/remctl/acl/invirt-console \
+             /etc/issue.net.no_tkt \
+             /etc/nss-pgsql.conf \
+             ; do
+        mako-render $i.mako > $i
+    done
 }
 
 #