summaryrefslogtreecommitdiffstats
path: root/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-07-10 12:14:15 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-10 12:14:15 +0200
commitab4f64f4e9a999dade64e57959a61f02885e2b39 (patch)
treed6bb34df2a20f97241718b1621a7ccff73eac778 /hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment
parentf0ea8bbe90744924749d98c14a16ce656782ae88 (diff)
downloadjenkins.debian.net-ab4f64f4e9a999dade64e57959a61f02885e2b39.tar.xz
reproducible Debian: vary user's shell on the 2nd build if BUILDUSERNAME is set
Diffstat (limited to 'hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment')
-rwxr-xr-xhosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment
index db75b555..74189218 100755
--- a/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment
+++ b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/D01_modify_environment
@@ -17,8 +17,10 @@ export CAPTURE_ENVIRONMENT="I capture the environment"
echo "I: Changing /bin/sh to bash" >&2
echo "dash dash/sh boolean false" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
-echo "I: Setting $BUILDUSERNAME's login shell to /bin/bash" >&2
-#usermod -s /bin/bash $BUILDUSERNAME
+if [ -n "$BUILDUSERNAME" ] ; then
+ echo "I: Setting $BUILDUSERNAME's login shell to /bin/bash" >&2
+ usermod -s /bin/bash $BUILDUSERNAME
+fi
# temporarily disable disorderfs as we have problems properly unmounting it
exit 0