schutzbot/mockbuild: stop running mock as root
Running mock as root is broken, this commit can be reverted once rhbz#2135203 is fixed.
This commit is contained in:
parent
925ca9b41e
commit
fb3ac490d5
1 changed files with 4 additions and 1 deletions
|
|
@ -109,9 +109,12 @@ make srpm
|
|||
# override template repositories
|
||||
template_override
|
||||
|
||||
greenprint "🎟 Adding user to mock group"
|
||||
sudo usermod -a -G mock "$(whoami)"
|
||||
|
||||
# Compile RPMs in a mock chroot
|
||||
greenprint "🎁 Building RPMs with mock"
|
||||
sudo mock -r $MOCK_CONFIG --no-bootstrap-chroot \
|
||||
mock -r $MOCK_CONFIG --no-bootstrap-chroot \
|
||||
--resultdir $REPO_DIR \
|
||||
rpmbuild/SRPMS/*.src.rpm
|
||||
sudo chown -R $USER ${REPO_DIR}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue