X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/blobdiff_plain/2995d8728b6a6f74ace741db996cc7699b3c4801..b0db3b94774fb1f46d84f0455c0f129f39793095:/debian/sipb-xen-console.init diff --git a/debian/sipb-xen-console.init b/debian/sipb-xen-console.init index 3986a84..026eb1e 100755 --- a/debian/sipb-xen-console.init +++ b/debian/sipb-xen-console.init @@ -37,27 +37,13 @@ SCRIPTNAME=/etc/init.d/$NAME gen_config() { - { - for i in $(invirt-getconf --ls hosts); do - local hostname=$(invirt-getconf hosts.$i.hostname) - echo "#include /etc/conserver/conf.d/$hostname" - done - } > /etc/conserver/invirt-hosts.cf - local realm=$(invirt-getconf authn.0.realm) - { - for i in $(invirt-getconf --ls hosts); do - local hostname=$(invirt-getconf hosts.$i.hostname) - echo "host/$hostname@$realm" - done - } > /etc/remctl/acl/invirt-console - - mako-render /etc/nss-pgsql.conf.mako > /etc/nss-pgsql.conf - - fmt > /etc/issue.net.no_tkt << EOF -You must login to the $(invirt-getconf console.hostname) console server using -Kerberos tickets, but your ssh client did not pass a valid ticket to the -console server. -EOF + 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 } #