From ef21849e646c1a0712735583409c4490935f8145 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 16 Apr 2014 17:00:14 +0200 Subject: First shot at a schroot creating script It currently uses sudo freely -- I wonder if it is worth updating sudoers appropriately. Maybe the whole script can be added to sudoers? The jenkins job definition itself is not tested. --- update_jdn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update_jdn.sh') diff --git a/update_jdn.sh b/update_jdn.sh index c0c35d71..7a910f5f 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -12,7 +12,7 @@ explain() { } # make sure needed directories exists -for directory in /srv/jenkins /chroots ; do +for directory in /srv/jenkins /chroots /chroots/schroots; do if [ ! -d $directory ] ; then sudo mkdir $directory sudo chown jenkins.jenkins $directory @@ -25,7 +25,7 @@ done # sudo apt-get install vim screen less etckeeper moreutils curl mtr-tiny dstat devscripts bash-completion shorewall shorewall6 cron-apt apt-listchanges munin calamaris visitors procmail libjson-rpc-perl libfile-touch-perl zutils ip2host \ build-essential python-setuptools \ - debootstrap sudo figlet graphviz apache2 python-yaml python-pip mr subversion subversion-tools vnstat webcheck poxml qemu vncsnapshot imagemagick ffmpeg2theora python-twisted python-imaging gocr guestmount + debootstrap sudo figlet graphviz apache2 python-yaml python-pip mr subversion subversion-tools vnstat webcheck poxml qemu vncsnapshot imagemagick ffmpeg2theora python-twisted python-imaging gocr guestmount schroot explain "Packages installed." # -- cgit v1.2.3-70-g09d2