From 1d540ffd23252c210d22923bffa70ef41b3126e3 Mon Sep 17 00:00:00 2001 From: status404 Date: Fri, 13 Sep 2024 11:25:27 +0300 Subject: [PATCH] generate_pgp_key(): add "https://Account_URL" to key uid --- docker/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/run.sh b/docker/run.sh index 1771800..82af6eb 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -105,9 +105,14 @@ generate_pgp_key() Subkey-Usage: encr Subkey-Length: 1024 Name-Real: Account_URL - Name-Comment: $DM_ACCOUNT_URL + Name-Comment: http://$(basename $DM_ACCOUNT_URL) Expire-Date: 0 EOF + + #add "https://Account_URL" to key uid + echo -e "Account_URL\n\nhttps://$(basename $DM_ACCOUNT_URL)\nO\nsave\n" | \ + gpg --passphrase "$DM_PGP_PASSWORD" --command-fd 0 --edit-key Account_URL adduid + tput setaf 2 cat <<-EOF