~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/buildd/debian/postinst

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-17 20:41:13 UTC
  • mfrom: (3277.1.4 launchpad-foobar2)
  • Revision ID: pqm@pqm.ubuntu.com-20060317204113-9841a4470db3611b
[r=jamesh] Mainline soyuz

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
set -u
7
7
 
8
8
USER=${BUILDD_USER:-buildd}
9
 
BUILDDGID=${BUILDD_GID:-65500}
10
 
BUILDDUID=${BUILDD_UID:-65500}
 
9
BUILDDGID=${BUILDD_GID:-2501}
 
10
BUILDDUID=${BUILDD_UID:-2001}
11
11
 
12
12
make_buildd()
13
13
{
33
33
        cp  /usr/share/launchpad-buildd/sbuildrc \
34
34
            /home/${USER}/sbuildrc.tmp
35
35
        cd /home/${USER}
36
 
        sed -e's/@ARCHTAG@/'$(dpkg --print-architecture)'/g' \
 
36
        sed -e's/@ARCHTAG@/'$(dpkg --print-installation-architecture)'/g' \
37
37
            -e's/@FQDN@/'$(hostname --fqdn)'/g' \
38
38
            <sbuildrc.tmp > .sbuildrc
39
39
        chown $USER:buildd .sbuildrc
40
40
        chmod 0644 .sbuildrc
 
41
        rm sbuildrc.tmp
41
42
 
42
43
        # Prepare a default buildd...
43
44
        test -e /etc/launchpad-buildd/default || make_buildd
47
48
        chown $USER:buildd /home/${USER}/filecache-default
48
49
        test -d /home/${USER}/ccache || mkdir /home/${USER}/ccache
49
50
        chown $USER:buildd /home/${USER}/ccache
50
 
        test -d /home/${USER}/logs || mkdir /home/${USER}/logs
51
 
        chown $USER:buildd /home/${USER}/logs
52
51
 
53
52
        chown $USER:buildd /var/log/launchpad-buildd /var/run/launchpad-buildd
54
53