summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-29 11:18:03 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-29 11:18:03 +0200
commitc485186371808c29fef850404da9ee30a62be9e5 (patch)
treea4e279a3efaadadb3aee2e51f8386b220cac69f0 /hosts
parent3a50809e687454c80c99c02328e92b2b2261de33 (diff)
downloadjenkins.debian.net-c485186371808c29fef850404da9ee30a62be9e5.tar.xz
reproducible: use su instead of sudo
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup2
-rwxr-xr-xhosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup2
-rwxr-xr-xhosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment2
3 files changed, 3 insertions, 3 deletions
diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
index f8c545ae..012b9cbb 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
- sudo -u pbuilder2 fusermount -u /tmp/buildd
+ su -u pbuilder2 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 f8c545ae..012b9cbb 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
- sudo -u pbuilder2 fusermount -u /tmp/buildd
+ su -u pbuilder2 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 1179e6bc..c5af9b61 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
- sudo -u pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd
+ su -u pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd
else
echo "Warning: disorderfs not available."
fi