MSYS2-packages/filesystem/07-pacman-key.post
Christoph Reiter d048656c0d filesystem: move MAYBE_FIRST_START out of the post-install scripts
The main reason we have the first install warning still is that we
fill $HOME with bash related scripts that will only get executed
on the next login shell.

Simplify things by keeping MAYBE_FIRST_START logic in one file
and make it depend on wether $HOME was missing at the beginning.
2023-02-06 18:14:20 +01:00

14 lines
300 B
Plaintext

maybe_init_keyring ()
{
if [ ! -d /etc/pacman.d/gnupg ]
then
export GNUPGHOME="$(pacman-conf.exe gpgdir)"
/usr/bin/pacman-key --init
/usr/bin/pacman-key --populate msys2 || true
/usr/bin/pacman-key --refresh-keys || true
/usr/bin/gpgconf --kill all
fi
}
maybe_init_keyring