Set digest-algo for gpg to use SHA256 for linux packages.

Signed-off-by: Manuel Gauto <mgauto@mgenterprises.org>
This commit is contained in:
Manuel Gauto 2021-10-18 16:20:23 -04:00 committed by poiana
parent 6ee0b353ac
commit 2312afe9cd
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ add_deb() {
cp -f $3 $1/$2 cp -f $3 $1/$2
pushd $1/$2 > /dev/null pushd $1/$2 > /dev/null
rm -f $(basename -- $3).asc rm -f $(basename -- $3).asc
gpg --detach-sign --armor $(basename -- $3) gpg --detach-sign --digest-algo SHA256 --armor $(basename -- $3)
popd > /dev/null popd > /dev/null
} }
@ -63,7 +63,7 @@ update_repo() {
${release_dir} > ${release_dir}/Release ${release_dir} > ${release_dir}/Release
# release signature # release signature
gpg --detach-sign --armor ${release_dir}/Release gpg --detach-sign --digest-algo SHA256 --armor ${release_dir}/Release
rm -f ${release_dir}/Release.gpg rm -f ${release_dir}/Release.gpg
mv ${release_dir}/Release.asc ${release_dir}/Release.gpg mv ${release_dir}/Release.asc ${release_dir}/Release.gpg
@ -129,4 +129,4 @@ aws s3 sync ${tmp_repo_path}/dists ${s3_bucket_repo}/dists --delete --acl public
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/* aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/*

View File

@ -22,7 +22,7 @@ add_rpm() {
cp -f $2 $1 cp -f $2 $1
pushd $1 > /dev/null pushd $1 > /dev/null
rm -f $(basename -- $2).asc rm -f $(basename -- $2).asc
gpg --detach-sign --armor $(basename -- $2) gpg --detach-sign --digest-algo SHA256 --armor $(basename -- $2)
popd > /dev/null popd > /dev/null
} }
@ -33,7 +33,7 @@ update_repo() {
pushd $1 > /dev/null pushd $1 > /dev/null
createrepo --update --no-database . createrepo --update --no-database .
rm -f repodata/repomd.xml.asc rm -f repodata/repomd.xml.asc
gpg --detach-sign --armor repodata/repomd.xml gpg --detach-sign --digest-algo SHA256 --armor repodata/repomd.xml
popd > /dev/null popd > /dev/null
} }
@ -93,4 +93,4 @@ aws s3 sync ${tmp_repo_path}/repodata ${s3_bucket_repo}/repodata --delete --acl
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/* aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/*