mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
scripts: install gnupg only when apt-key is needed
apt-key depends on gnupg but apt-key itself if not used on modern systems (APT_KEY_TYPE=keyring). Signed-off-by: Simon Deziel <simon@sdeziel.info>
This commit is contained in:
parent
bd073b8dd6
commit
eaf5591953
@ -407,7 +407,7 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
if ! type gpg >/dev/null; then
|
if [ "$APT_KEY_TYPE" = "legacy" ] && ! type gpg >/dev/null; then
|
||||||
$SUDO apt-get update
|
$SUDO apt-get update
|
||||||
$SUDO apt-get install -y gnupg
|
$SUDO apt-get install -y gnupg
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user