Commit bbe4a4fd authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild-sign: fall back to libressl if openssl is missing

openssl binary may be missing while migrating system from libressl to
openssl. Make sure we can always sign the backage if either is there.
parent 832ab449
......@@ -17,6 +17,7 @@ fi
do_sign() {
local f i keyname repo
local openssl=$(command -v openssl || echo libressl)
# we are actually only interested in the name, not the file itself
......@@ -29,7 +30,7 @@ do_sign() {
set -e
cd "$repo"
openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i"
$openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i"
tar -f - -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment