summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-25 14:17:28 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-25 14:17:28 +0200
commit3ca8a01cfa922358daf1927c52dd64d73d693c63 (patch)
treede5005de602292e090c2ce2e7e4b58fcb71a2ed2 /bin
parent8b3ac93154ae771a981f91f906abc91da5da5730 (diff)
downloadjenkins.debian.net-3ca8a01cfa922358daf1927c52dd64d73d693c63.tar.xz
schroot-create.sh: temp. disable the most harmful commands now that these might actually be executed from the jobs using them...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/schroot-create.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 181b3972..44083136 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -60,7 +60,7 @@ export CURDIR=$(pwd)
bootstrap() {
sudo debootstrap $DISTRO $CHROOT_TARGET $MIRROR
- sudo -s <<-EOF
+ echo sudo -s <<-EOF
set -e
set -x
echo -e '#!/bin/sh\nexit 101' > $CHROOT_TARGET/usr/sbin/policy-rc.d
@@ -74,7 +74,7 @@ bootstrap() {
cleanup() {
if [ -d $CHROOT_TARGET ]; then
- sudo rm -rf --one-file-system $CHROOT_TARGET || fuser -mv $CHROOT_TARGET
+ echo sudo rm -rf --one-file-system $CHROOT_TARGET || echo fuser -mv $CHROOT_TARGET
fi
}
trap cleanup INT TERM EXIT