Fixed permission error in chrooted home folder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user