copr-be: don't fail enable-swap when not necessary
Ppc64le images have tsflags=nodocs set, so "rpm --setperms" fails with chmod: cannot access '/usr/share/man/man1/copr-rpmbuild.1.gz': No such file or directory Also, there's a new directory ../workspace, see: https://pagure.io/copr/copr/c/52e8393ce4f1984b38aa145667fa694143985853
This commit is contained in:
parent
5ab3f72439
commit
31b5478679
1 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,9 @@ mkfs.ext4 "${swap_device}${part_suffix}1"
|
|||
|
||||
mount "$swap_device${part_suffix}1" /var/lib/copr-rpmbuild
|
||||
mkdir /var/lib/copr-rpmbuild/results
|
||||
rpm --setperms copr-rpmbuild
|
||||
rpm --setugids copr-rpmbuild
|
||||
mkdir /var/lib/copr-rpmbuild/workspace
|
||||
rpm --setperms copr-rpmbuild || :
|
||||
rpm --setugids copr-rpmbuild || :
|
||||
|
||||
mkswap "${swap_device}${part_suffix}2"
|
||||
swapon "${swap_device}${part_suffix}2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue