updated: signing

This commit is contained in:
2023-04-27 15:20:02 +02:00
committed by Ubuntu
parent d78bf72e89
commit b5af5b54c8
2 changed files with 12 additions and 4 deletions

9
scripts/gpgSign.sh Normal file → Executable file
View File

@ -1,5 +1,8 @@
#!/bin/sh
# This is INSECURE!
cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs > ~/tmprepo/apt-repo/dists/stable/Release.gpg
cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs --clearsign > ~/tmprepo/apt-repo/dists/stable/InRelease
KEY="$1"
echo "debrepo: signing using $KEY"
cat ./apt-repo/dists/stable/Release | gpg --default-key $KEY -abs > ./apt-repo/dists/stable/Release.gpg
cat ./apt-repo/dists/stable/Release | gpg --default-key $KEY -abs --clearsign > ./apt-repo/dists/stable/InRelease