mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-06 07:22:14 +08:00
parent
e865964dd2
commit
f4c59ca96b
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ do_import()
|
||||||
# shellcheck disable=SC2064
|
# shellcheck disable=SC2064
|
||||||
trap "rm -f $keys_before" EXIT INT
|
trap "rm -f $keys_before" EXIT INT
|
||||||
$gpgcmd --with-colons --list-keys | grep ^pub: | awk -F: '{print $5}' > "$keys_before"
|
$gpgcmd --with-colons --list-keys | grep ^pub: | awk -F: '{print $5}' > "$keys_before"
|
||||||
echo "Paste the admins public GPG key:"
|
echo "Paste the admins public GPG key (use ^D, aka CTRL+D, when you're done):"
|
||||||
$gpgcmd --import
|
$gpgcmd --import
|
||||||
newkey=''
|
newkey=''
|
||||||
for key in $($gpgcmd --with-colons --list-keys | grep ^pub: | awk -F: '{print $5}'); do
|
for key in $($gpgcmd --with-colons --list-keys | grep ^pub: | awk -F: '{print $5}'); do
|
||||||
|
|
Loading…
Reference in a new issue