From 3ca8a01cfa922358daf1927c52dd64d73d693c63 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 25 Apr 2014 14:17:28 +0200 Subject: schroot-create.sh: temp. disable the most harmful commands now that these might actually be executed from the jobs using them... --- bin/schroot-create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/schroot-create.sh') 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 -- cgit v1.2.3-54-g00ecf