mirror of
https://github.com/ben-grande/qusal.git
synced 2025-01-26 23:27:06 -05:00
fix: remove workaround around split-gpg2 hang
Fix: https://github.com/ben-grande/qusal/issues/110
This commit is contained in:
parent
12d6d69ff4
commit
de5937fd8a
@ -44,10 +44,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/electrum
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
@ -55,10 +55,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/mirage-firewall
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
@ -53,10 +53,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-qusal-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/qusal-builder
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-qusal-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
@ -46,10 +46,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/qubes-builder
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2024 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
@ -35,10 +35,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/bitcoin
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -54,10 +54,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-source-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/electrs
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-source-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2024 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
@ -58,10 +58,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /home/user/.gnupg/electrumx
|
||||
- runas: user
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -107,10 +107,9 @@ include:
|
||||
cmd.run:
|
||||
- require:
|
||||
- file: "{{ slsdotpath }}-save-keys"
|
||||
- name: gpg --status-fd=2 --homedir . --import download/*.asc
|
||||
- name: gpg --homedir . --import download/*.asc
|
||||
- cwd: /root/.gnupg/pihole
|
||||
- runas: root
|
||||
- success_stderr: IMPORT_OK
|
||||
|
||||
"{{ slsdotpath }}-import-ownertrust":
|
||||
cmd.run:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
## SPDX-FileCopyrightText: 2024 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
@ -46,20 +46,17 @@ gpg_homedir="$(mktemp -d)"
|
||||
trap 'rm -rf -- "${gpg_homedir}"' EXIT INT HUP QUIT ABRT
|
||||
export GNUPGHOME="${gpg_homedir}"
|
||||
otrust="${gpg_homedir}/otrust.txt"
|
||||
gpg_agent="$(gpgconf --list-components | awk -F: '/^gpg-agent:/{print $3}')"
|
||||
gpg_cmd="gpg --status-fd=2"
|
||||
|
||||
${gpg_cmd} --agent-program "${gpg_agent}" \
|
||||
--import "${key_dir}"/*"${key_suffix}" >/dev/null 2>&1
|
||||
gpg --import "${key_dir}"/*"${key_suffix}" >/dev/null 2>&1
|
||||
|
||||
${gpg_cmd} --with-colons --list-public-keys | awk -F ':' '{
|
||||
gpg --with-colons --list-public-keys | awk -F ':' '{
|
||||
if (prev_line ~ /^pub$/ && $1 ~ /^fpr$/) {
|
||||
print $10 ":6:"
|
||||
}
|
||||
prev_line = $1
|
||||
}' | tee -- "${otrust}" >/dev/null
|
||||
|
||||
${gpg_cmd} --import-ownertrust "${otrust}" >/dev/null 2>&1
|
||||
gpg --import-ownertrust "${otrust}" >/dev/null 2>&1
|
||||
|
||||
fail="0"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user