From eb040d6a123fd6287aae7806da5dd32461b5bec2 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 5 Oct 2023 22:10:29 +0200 Subject: [PATCH] Fixed permission error in chrooted home folder --- ExampleSetupJenkinsChroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExampleSetupJenkinsChroot.sh b/ExampleSetupJenkinsChroot.sh index 8f52159..a257ee1 100644 --- a/ExampleSetupJenkinsChroot.sh +++ b/ExampleSetupJenkinsChroot.sh @@ -30,8 +30,9 @@ echo "jenkins:x:1000:1000::/home/jenkins:/bin/sh" >> ${chrootDir}/etc/passwd echo "jenkins:x:1000:" >> ${chrootDir}/etc/group sed -i 's/abuild.*/abuild:x:300:jenkins/' ${chrootDir}/etc/group mkdir -p ${chrootDir}/home/jenkins -chown jenkins:jenkins ${chrootDir}/home/jenkins cp -L -r /home/jenkins/.abuild ${chrootDir}/home/jenkins/ +chown -R jenkins:jenkins ${chrootDir}/home/jenkins + chgrp abuild ${chrootDir}/var/cache/distfiles chmod g+w ${chrootDir}/var/cache/distfiles