From 9abe01761ba80201a5414232ecfe1075ee13456b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 29 Aug 2015 11:21:21 +0200 Subject: reproducible: fixup usage of su --- hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup | 2 +- hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup | 2 +- hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'hosts') diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup index 012b9cbb..6f1add53 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup @@ -7,6 +7,6 @@ set -e # cease using disorderfs if [ -d /tmp/disorderfs ] ; then - su -u pbuilder2 fusermount -u /tmp/buildd + su pbuilder2 -c 'fusermount -u /tmp/buildd' mv /tmp/disorderfs /tmp/buildd fi diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup index 012b9cbb..6f1add53 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup @@ -7,6 +7,6 @@ set -e # cease using disorderfs if [ -d /tmp/disorderfs ] ; then - su -u pbuilder2 fusermount -u /tmp/buildd + su pbuilder2 -c 'fusermount -u /tmp/buildd' mv /tmp/disorderfs /tmp/buildd fi diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment b/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment index c5af9b61..31e996ae 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment @@ -16,7 +16,7 @@ export CAPTURE_ENVIRONMENT="I capture the environment" if [ -x /usr/bin/disorderfs ] ; then mknod -m 666 /dev/fuse c 10 229 mv /tmp/buildd /tmp/disorderfs - su -u pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd + su pbuilder2 -c 'disorderfs /tmp/disorderfs /tmp/buildd' else echo "Warning: disorderfs not available." fi -- cgit v1.2.3-70-g09d2