summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-23 12:12:06 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-23 12:12:06 +0100
commite2d92d6c9e6cff09193c165dc30c40518089ef53 (patch)
tree6cfa901c5e49c055c8ccf481f0ad1fa5e72b5573
parentdf2857a65567f3a3705aa307d1e0e99ab3ea222d (diff)
downloadjenkins.debian.net-e2d92d6c9e6cff09193c165dc30c40518089ef53.tar.xz
chown logfiles so they become visbile and can be deleted
-rwxr-xr-xbin/g-i-installation.sh1
-rw-r--r--etc/sudoers.d/jenkins2
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index bdaaf9cf..d4c96a96 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -438,6 +438,7 @@ save_logs() {
#
mkdir -p $RESULTS/log
sudo cp -r $SYSTEM_MNT/var/log/installer $RESULTS/log/
+ sudo chown -R jenkins:jenkins $RESULTS/log/
#
# get list of installed packages
#
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index 1c03e0d3..a45b6264 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -1,4 +1,4 @@
-jenkins ALL= NOPASSWD: /usr/sbin/debootstrap *, /usr/sbin/chroot /chroots/*, /usr/sbin/chroot /media/*, /bin/rm -rf --one-file-system /chroots/*, /bin/umount -l /chroots/*, /bin/umount -l /media/*, /bin/mount -o loop*, /usr/bin/du *, /bin/kill -9 *, /usr/bin/qemu-system-x86_64 *, /bin/mkdir -p /media/*, /usr/bin/guestmount *, /bin/cp -r /media/*, SETENV: NOPASSWD: /usr/sbin/pbuilder *
+jenkins ALL= NOPASSWD: /usr/sbin/debootstrap *, /usr/sbin/chroot /chroots/*, /usr/sbin/chroot /media/*, /bin/rm -rf --one-file-system /chroots/*, /bin/umount -l /chroots/*, /bin/umount -l /media/*, /bin/mount -o loop*, /usr/bin/du *, /bin/kill -9 *, /usr/bin/qemu-system-x86_64 *, /bin/mkdir -p /media/*, /usr/bin/guestmount *, /bin/cp -r /media/*, /bin/chown -R jenkins:jenkins /var/lib/jenkins/jobs/*, SETENV: NOPASSWD: /usr/sbin/pbuilder *
# keep these environment variables
Defaults env_keep += "http_proxy", env_reset