Don't call collect scripts with /bin/bash

Messes up the sudoers permissions.
This commit is contained in:
Joshua Boniface 2020-02-27 14:21:08 -05:00
parent 95efaac9f3
commit 92918a1bbb
4 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ rsync -avc bin/${reponame}/ ${repodir}/incoming/${reponame}_${tagname}
# Execute import job on repo dir
echo "*** COLLECTING PACKAGES FOR REPO ***"
nice_reponame="$( sed 's/jellyfin-//g' <<<"${reponame}" )"
sudo /bin/bash ${repodir}/collect-client.sh ${nice_reponame} ${repodir}/incoming/${reponame}_${tagname}
sudo ${repodir}/collect-client.sh ${nice_reponame} ${repodir}/incoming/${reponame}_${tagname}
# Upload artifacts to the GitHub release
echo "*** UPLOADING BINARIES TO GITHUB RELEASE ***"

View File

@ -48,7 +48,7 @@ fi
rsync -avc bin/${reponame}/ ${repodir}/incoming/${reponame}_${tagname}
# Execute import job on repo dir
sudo /bin/bash ${repodir}/collect-ffmpeg.sh ${repodir}/incoming/${reponame}_${tagname}
sudo ${repodir}/collect-ffmpeg.sh ${repodir}/incoming/${reponame}_${tagname}
# Upload artifacts to the GitHub release
for artifact in bin/${reponame}/*.{deb,buildinfo}; do

View File

@ -87,7 +87,7 @@ echo "*** SYNCING OS PACKAGES TO REPO ***"
rsync -avz bin/${reponame}/ ${repodir}/incoming/${reponame}_${tagname}
echo "*** COLLECTING PACKAGES FOR REPO ***"
sudo /bin/bash ${repodir}/collect-server.sh ${repodir}/incoming/${reponame}_${tagname}
sudo ${repodir}/collect-server.sh ${repodir}/incoming/${reponame}_${tagname}
echo "*** BUILDING DOCKER IMAGES ***"
/bin/bash ${builddir}/scripts/build.d/build-jellyfin-docker tag-name=${tagname} build-docker-manifests=yes

View File

@ -137,7 +137,7 @@ rsync -avz bin/${reponame}/ ${repodir}/incoming/${reponame}_${tagname}
# Execute import job on repo server
echo "*** COLLECTING PACKAGES FOR REPO ***"
sudo /bin/bash ${repodir}/collect-server.sh ${repodir}/incoming/${reponame}_${tagname} nightly
sudo ${repodir}/collect-server.sh ${repodir}/incoming/${reponame}_${tagname} nightly
# Build Docker containers (self-contained)
set +o errexit