Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
nightly-rpms: Use /usr/bin/mock instead of mock
Browse files Browse the repository at this point in the history
Using `mock` on CentOS/Fedora as root resolves it to /sbin/mock, which
only works if a mock user has been setup. Forcing the use of
/usr/bin/mock makes this work always.
  • Loading branch information
kshlm committed May 28, 2018
1 parent da2a61c commit 21d204e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/nightly-rpms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SRPM=$(rpmbuild --define "_topdir $PWD/rpmbuild" -bs rpmbuild/SPECS/$SPEC | cut

# Build RPM from SRPM using mock
mkdir -p "$RESULTDIR"
mock -r epel-7-x86_64 --resultdir="$RESULTDIR" --rebuild "$SRPM"
/usr/bin/mock -r epel-7-x86_64 --resultdir="$RESULTDIR" --rebuild "$SRPM"

popd #BUILDDIR

Expand Down

0 comments on commit 21d204e

Please sign in to comment.