Remove "pgpg" helper script
authorJacob Bachmeyer <jcb@gnu.org>
Fri, 13 Jan 2023 04:42:28 +0000 (22:42 -0600)
committerJacob Bachmeyer <jcb@gnu.org>
Fri, 13 Jan 2023 04:42:28 +0000 (22:42 -0600)
ftp-addkey.sh
ftp-rmkey.sh
pgpg [deleted file]

index 4770ca338a48e771d35250abfc6470b6867616e7..57e87638be3ed567ff032bf36419ac874f4b6b54 100755 (executable)
@@ -41,7 +41,7 @@ echo $2 >> $PACKAGES/$1/email
 
 echo "Adding key..."
 
-pgpg $1 --import $3
+gpg --no-default-keyring --keyring $PACKAGES/$1/pubring.gpg --import $3
 
 chmod -R 755 $PACKAGES/$1
 
index a7efa950d975e76919433c42cea45a0009d0f5cc..692fabf623ff5133b486d68a0ae79ac39eeae3f5 100755 (executable)
@@ -38,9 +38,10 @@ then
 fi
 
 echo "Importing old key into $EXPIRED_KEYRING..."
-pgpg $1 --export $2 | gpg --no-default-keyring --keyring $EXPIRED_KEYRING --import
+gpg --no-default-keyring --keyring $PACKAGES/$1/pubring.gpg --export $2 \
+    | gpg --no-default-keyring --keyring $EXPIRED_KEYRING --import
 
 echo "Removing key..."
-pgpg $1 --delete-key $2
+gpg --no-default-keyring --keyring $PACKAGES/$1/pubring.gpg --delete-key $2
 
 echo "Make sure to remove the email address from $PACKAGES/$1/email."
diff --git a/pgpg b/pgpg
deleted file mode 100755 (executable)
index 136d450..0000000
--- a/pgpg
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-/usr/bin/gpg --no-default-keyring --keyring /home/gatekpr/packages/$1/pubring.gpg $2 $3 $4 $5 $6 $7 $8 $9