Ignore:
Timestamp:
Aug 13, 2008, 2:05:31 AM (16 years ago)
Author:
y_z
Message:

using mako-render to generate nss-pgsql.conf from gen_config

Location:
trunk/packages/sipb-xen-console
Files:
1 added
1 edited

Legend:

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

    r844 r887  
    5252    } > /etc/remctl/acl/invirt-console
    5353
    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
     54    mako-render /etc/nss-pgsql.conf.mako > /etc/nss-pgsql.conf
    7155
    7256    fmt > /etc/issue.net.no_tkt << EOF
Note: See TracChangeset for help on using the changeset viewer.