From: Adam Dickmeiss Date: Fri, 30 Dec 2016 16:52:09 +0000 (+0100) Subject: Allow docker-build.sh as non-root X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ef349b5dcb7259b304fb306c7b3b74da5b723a03;p=git-tools-moved-to-github.git Allow docker-build.sh as non-root --- diff --git a/id-deb-build/in-docker-rpm.sh b/id-deb-build/in-docker-rpm.sh index 8f915a5..fe68b2f 100755 --- a/id-deb-build/in-docker-rpm.sh +++ b/id-deb-build/in-docker-rpm.sh @@ -15,6 +15,10 @@ echo "%_topdir /build/rpmbuild" >$HOME/.rpmmacros echo "%_source_filedigest_algorithm 0" >>$HOME/.rpmmacros echo "%_binary_filedigest_algorithm 0" >>$HOME/.rpmmacros +# rpmbuild wants a user +groupadd -g 1000 bob +useradd -u 1000 -g bob bob + yum-builddep -y SPECS/*.spec rpmbuild -ba SPECS/*.spec