summaryrefslogtreecommitdiffstats
path: root/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment
diff options
context:
space:
mode:
authorPaul Wise <pabs@debian.org>2016-08-31 15:50:26 +0800
committerMattia Rizzolo <mattia@debian.org>2016-08-31 13:37:15 +0000
commit42c36550ec0ff33b27f15e10f6f69f98f6c36bc4 (patch)
tree11bdcd3ce5f0fd23faa66853b09271ecd43e8a71 /hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment
parente5d053aefa5f6d5f54dc5ce4b33ce86ec4e26a0b (diff)
downloadjenkins.debian.net-42c36550ec0ff33b27f15e10f6f69f98f6c36bc4.tar.xz
Vary the GECOS of the two build users
This affects at least the Debian package libforms. Signed-off-by: Mattia Rizzolo <mattia@debian.org>
Diffstat (limited to 'hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment')
-rwxr-xr-xhosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment4
1 files changed, 4 insertions, 0 deletions
diff --git a/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment b/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment
index 74189218..27fd6445 100755
--- a/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment
+++ b/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/D01_modify_environment
@@ -20,6 +20,10 @@ DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
if [ -n "$BUILDUSERNAME" ] ; then
echo "I: Setting $BUILDUSERNAME's login shell to /bin/bash" >&2
usermod -s /bin/bash $BUILDUSERNAME
+ if [ -n "$BUILDUSERGECOS" ] ; then
+ echo "I: Setting $BUILDUSERNAME's GECOS to $BUILDUSERGECOS" >&2
+ usermod -c "$BUILDUSERGECOS" $BUILDUSERNAME
+ fi
fi
# temporarily disable disorderfs as we have problems properly unmounting it