Ignore:
Timestamp:
Jul 30, 2008, 10:29:17 PM (16 years ago)
Author:
price
Message:

use invirt-getconf to generate config in sipb-xen-console

Location:
trunk/packages/sipb-xen-console/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-console/debian/changelog

    r699 r800  
     1sipb-xen-console (7.6) unstable; urgency=low
     2
     3  * Use invirt-getconf to generate config.
     4
     5 -- Greg Price <price@mit.edu>  Wed, 30 Jul 2008 22:28:33 -0400
     6
    17sipb-xen-console (7.5) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-console/debian/sipb-xen-console.init

    r699 r800  
    3838gen_config()
    3939{
    40         perl -pe 's|^|#include /etc/conserver/conf.d/|' \
    41             </etc/invirt/hosts >/etc/conserver/invirt-hosts.cf
    42         INVIRT_REALM="$(cat /etc/invirt/realm)"
    43         perl -pe "s|^|host/|; s|\$|\@$INVIRT_REALM|" \
    44             </etc/invirt/hosts >/etc/remctl/acl/invirt-console
     40        (for i in $(invirt-getconf --ls hosts); do
     41                hostname=$(invirt-getconf hosts.$i.hostname)
     42                echo "#include /etc/conserver/conf.d/$hostname"
     43        done) >/etc/conserver/invirt-hosts.cf
     44        realm=$(invirt-getconf authn.0.realm)
     45        (for i in $(invirt-getconf --ls hosts); do
     46                hostname=$(invirt-getconf hosts.$i.hostname)
     47                echo "host/$hostname@$realm"
     48        done) >/etc/remctl/acl/invirt-console
    4549}
    4650
Note: See TracChangeset for help on using the changeset viewer.