From ab4f64f4e9a999dade64e57959a61f02885e2b39 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 10 Jul 2016 12:14:15 +0200 Subject: reproducible Debian: vary user's shell on the 2nd build if BUILDUSERNAME is set --- .../etc/pbuilder/rebuild-hooks/D01_modify_environment | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hosts/profitbricks-build5-amd64') diff --git a/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/D01_modify_environment b/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/D01_modify_environment index db75b555..74189218 100755 --- a/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/D01_modify_environment +++ b/hosts/profitbricks-build5-amd64/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 -- cgit v1.2.3-54-g00ecf