Changeset 843 for trunk/packages/sipb-xen-console
- Timestamp:
- Aug 3, 2008, 1:22:48 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-console
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-console/config.todo
r841 r843 1 files/etc/nss-pgsql.conf2 1 files/etc/issue.net.no_tkt 3 2 files/etc/lots: could benefit from config-package-dev TRANSFORM for upgradeability -
trunk/packages/sipb-xen-console/debian/changelog
r800 r843 1 sipb-xen-console (7.7) unstable; urgency=low 2 3 * sipb_xen_database -> invirt.database 4 * use invirt config in sipb-xen-consolefs 5 * added decomposition of DB URI 6 * generate nss-pgsql.conf from debian init script 7 8 -- Yang Zhang <y_z@mit.edu> Sun, 3 Aug 2008 01:13:37 -0400 9 1 10 sipb-xen-console (7.6) unstable; urgency=low 2 11 -
trunk/packages/sipb-xen-console/debian/sipb-xen-console.init
r800 r843 1 #! /bin/sh1 #!/bin/bash 2 2 ### BEGIN INIT INFO 3 3 # Provides: sipb-xen-console … … 38 38 gen_config() 39 39 { 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 40 { 41 for i in $(invirt-getconf --ls hosts); do 42 local hostname=$(invirt-getconf hosts.$i.hostname) 43 echo "#include /etc/conserver/conf.d/$hostname" 44 done 45 } > /etc/conserver/invirt-hosts.cf 46 local realm=$(invirt-getconf authn.0.realm) 47 { 48 for i in $(invirt-getconf --ls hosts); do 49 local hostname=$(invirt-getconf hosts.$i.hostname) 50 echo "host/$hostname@$realm" 51 done 52 } > /etc/remctl/acl/invirt-console 53 54 cat > /etc/nss-pgsql.conf << EOF 55 host = $(invirt-getconf db.host) 56 port = $(invirt-getconf db.port) 57 database = $(invirt-getconf db.dbname) 58 login = $(invirt-getconf db.user) 59 60 querypasswd = SELECT name, NULL, machine_id + 1000 as uid, machine_id + 1000 as gid, '', '/consolefs/'|| name, '/usr/bin/sipb-xen-consolesh' FROM machines 61 querygroup = SELECT name, NULL, machine_id + 1000 as gid FROM machines 62 querymembers = SELECT name FROM machines WHERE 1000 + machine_id = %d 63 queryids = SELECT 1000 + machine_id AS gid FROM machines LIMIT 0 64 65 passwd_name = name 66 passwd_uid = 1000 + machine_id 67 68 group_name = name 69 group_gid = 1000 + machine_id 70 EOF 49 71 } 50 72
Note: See TracChangeset
for help on using the changeset viewer.