privatebin : fix sha 2
This commit is contained in:
parent
80dfecd5b0
commit
1ebf655657
|
@ -15,10 +15,8 @@ if ! podman image exists ${privatebin_image}:${privatebin_version}; then
|
|||
read type tag_sha < <(echo $(curl -s "https://api.github.com/repos/PrivateBin/PrivateBin/git/ref/tags/${arg_release}" | jq -r '.object.type,.object.sha'))
|
||||
if [ $type == "commit" ]; then
|
||||
sha=$tag_sha
|
||||
echo "commit sha: $tag_sha"
|
||||
else
|
||||
sha=$(curl -s "https://api.github.com/repos/PrivateBin/PrivateBin/git/tags/$tag_sha" | jq '.object.sha')
|
||||
echo "commit sha: $sha"
|
||||
sha=$(curl -s "https://api.github.com/repos/PrivateBin/PrivateBin/git/tags/$tag_sha" | jq -r '.object.sha')
|
||||
fi
|
||||
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile &&
|
||||
TMPDIR=${HOME} podman image build \
|
||||
|
|
Loading…
Reference in a new issue