Skip to content

Commit

Permalink
update GnuPG setup again
Browse files Browse the repository at this point in the history
  • Loading branch information
georglauterbach committed Jul 21, 2024
1 parent 90bc71c commit fdbcb46
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions data/versioned/24.04/post_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ function setup_doas() {
function setup_gnupg() {
local GNUPG_HOME_DIR="${HOME}/.gnupg"
mkdir -p "${GNUPG_HOME_DIR}"
touch "${GNUPG_HOME_DIR}/gpg-agent.conf"

if ! grep -q 'pinentry-program' "${GNUPG_HOME_DIR}/gpg-agent.conf"; then
echo 'pinentry-program /usr/bin/pinentry-curses' >>"${GNUPG_HOME_DIR}/gpg-agent.conf"
gpg-connect-agent reloadagent /bye &>/dev/null || :
fi

chown -R "${USER}:${USER}" "${GNUPG_HOME_DIR}"
find "${GNUPG_HOME_DIR}" -type f -exec chmod 600 {} \;
find "${GNUPG_HOME_DIR}" -type d -exec chmod 700 {} \;
Expand Down

0 comments on commit fdbcb46

Please sign in to comment.