diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 17:54:46 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 17:54:46 +0300 |
commit | 8667152bc05967c2a9b19a80d809c81caec0a4df (patch) | |
tree | d94c019963b084a9c0d482859efe81828c8eb925 /init.sh | |
parent | 5b527aa3c5d9a425305fdef73bfb819a5c1ce81f (diff) | |
download | arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.tar.gz arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.tar.bz2 arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.zip |
Expanded ak-gpg handler
Diffstat (limited to 'init.sh')
-rwxr-xr-x | init.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ ak_gpg_check_or_create(){ then gpg2 --homedir $AK_GPGHOME --batch --passphrase '' --quick-gen-key kaos@kaos.kaos rsa3072 sign 0 AK_FINGERPRINT="$(gpg2 --homedir $AK_GPGHOME --list-keys | grep kaos@kaos.kaos -B 1 | head -n 1 | awk '{print $1}')" + printf '%s' "$AK_FINGERPRINT" > $AK_WORKDIR/current_key gpg2 --homedir $AK_GPGHOME --batch --passphrase '' --quick-add-key $AK_FINGERPRINT rsa3072 encrypt 0 fi } |