diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-23 14:10:03 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-23 14:10:03 +0300 |
commit | a359611ed2bcc79bf440f05096cfbdc618869067 (patch) | |
tree | 7d4d5fb32a3ee842320474917ca95b09d8190400 /lib | |
parent | 3dbf01ec2d879beab38c84f20cc8986b15d3cd18 (diff) | |
download | arching-kaos-tools-a359611ed2bcc79bf440f05096cfbdc618869067.tar.gz arching-kaos-tools-a359611ed2bcc79bf440f05096cfbdc618869067.tar.bz2 arching-kaos-tools-a359611ed2bcc79bf440f05096cfbdc618869067.zip |
use settings instead of file to store activated gpg key
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/_ak_config | 5 | ||||
-rwxr-xr-x | lib/_ak_gpg | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/_ak_config b/lib/_ak_config index f47a7c5..45d0112 100755 --- a/lib/_ak_config +++ b/lib/_ak_config @@ -3,8 +3,9 @@ source $AK_LIBDIR/_ak_node _ak_config_show(){ # We will be using our public key also to put it in the block later - KEY="tmp-gpg.pub" - _ak_gpg_key_self_export $KEY + KEY="self.pub" + ak-gpg --export-key-self-to-file + _ak_log_debug "$KEY" GPG_PUB_KEY=$(_ak_ipfs_add $KEY) rm $KEY profile="$(ak-profile -l)" diff --git a/lib/_ak_gpg b/lib/_ak_gpg index a2cca7a..a214965 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -208,7 +208,7 @@ _ak_gpg_select_key(){ if [ -n "$x" ] then _ak_log_info "$x was selected" - printf '%s' "$x" > $AK_WORKDIR/selected_key + _ak_settings_set "gpg.fingerprint" "$x" break else _ak_log_warning "You didn't select a key" |