diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-10 11:01:15 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-10 11:01:15 +0200 |
commit | 95e01b859cc5aca85e847a2f755cce03ab61c4e6 (patch) | |
tree | 21b7bbdd3d3a4136f5210734794924d0d3022f8b | |
parent | abf5265550b3aa79a498348a398ae8324a1731ad (diff) | |
download | jenkins.debian.net-95e01b859cc5aca85e847a2f755cce03ab61c4e6.tar.xz |
reproducible: call schroot without sudo
-rwxr-xr-x | bin/reproducible_maintenance.sh | 2 | ||||
-rw-r--r-- | hosts/bpi0-armhf-rb/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/cbxi4pro0-armhf-rb/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/hb0-armhf-rb/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/jenkins/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/profitbricks-build1-amd64/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/profitbricks-build2-amd64/etc/sudoers.d/jenkins | 2 | ||||
-rw-r--r-- | hosts/wbq0-armhf-rb/etc/sudoers.d/jenkins | 2 |
8 files changed, 1 insertions, 15 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 4d0b4353..798bde22 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -52,7 +52,7 @@ if [ ! -z "$OLDSTUFF" ] ; then fi # remove old and unused schroot sessions -ps fax|grep -v grep |grep schroot || for i in $(sudo schroot --all-sessions -l ) ; do ps fax|grep -v grep |grep schroot || sudo schroot -e -c $i ; done +ps fax|grep -v grep |grep schroot || for i in $(schroot --all-sessions -l ) ; do ps fax|grep -v grep |grep schroot || schroot -e -c $i ; done # to explain this: # first, check if no process using "schroot" is running... # then loop through all schroot sessions diff --git a/hosts/bpi0-armhf-rb/etc/sudoers.d/jenkins b/hosts/bpi0-armhf-rb/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/bpi0-armhf-rb/etc/sudoers.d/jenkins +++ b/hosts/bpi0-armhf-rb/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/cbxi4pro0-armhf-rb/etc/sudoers.d/jenkins b/hosts/cbxi4pro0-armhf-rb/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/cbxi4pro0-armhf-rb/etc/sudoers.d/jenkins +++ b/hosts/cbxi4pro0-armhf-rb/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/hb0-armhf-rb/etc/sudoers.d/jenkins b/hosts/hb0-armhf-rb/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/hb0-armhf-rb/etc/sudoers.d/jenkins +++ b/hosts/hb0-armhf-rb/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/jenkins/etc/sudoers.d/jenkins b/hosts/jenkins/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/jenkins/etc/sudoers.d/jenkins +++ b/hosts/jenkins/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/profitbricks-build1-amd64/etc/sudoers.d/jenkins b/hosts/profitbricks-build1-amd64/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/profitbricks-build1-amd64/etc/sudoers.d/jenkins +++ b/hosts/profitbricks-build1-amd64/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/profitbricks-build2-amd64/etc/sudoers.d/jenkins b/hosts/profitbricks-build2-amd64/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/profitbricks-build2-amd64/etc/sudoers.d/jenkins +++ b/hosts/profitbricks-build2-amd64/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ diff --git a/hosts/wbq0-armhf-rb/etc/sudoers.d/jenkins b/hosts/wbq0-armhf-rb/etc/sudoers.d/jenkins index f57c0a38..d75335f9 100644 --- a/hosts/wbq0-armhf-rb/etc/sudoers.d/jenkins +++ b/hosts/wbq0-armhf-rb/etc/sudoers.d/jenkins @@ -6,8 +6,6 @@ jenkins ALL= \ /bin/chmod +x /chroots/*, \ /usr/sbin/chroot /chroots/*, \ /usr/sbin/chroot /media/*, \ - /usr/bin/schroot --all-sessions -l, \ - /usr/bin/schroot -e -c *, \ /bin/ls -la /media/*, \ /bin/rm -rf --one-file-system /chroots/*, \ /bin/rm -rf --one-file-system /schroots/*, \ |