scripts: install gnupg deb, pass --yes to apt-get

Fixes #3685
Fixes #3528
Fixes #3649

Change-Id: Ie029fca6cf3d07a77d228e9591ec1c1c828e68af
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/3709/head
Brad Fitzpatrick 3 years ago committed by Brad Fitzpatrick
parent 189f359609
commit 66f6efa8cb

@ -389,10 +389,9 @@ main() {
echo "Please install either curl or wget to proceed." echo "Please install either curl or wget to proceed."
exit 1 exit 1
fi fi
export DEBIAN_FRONTEND=noninteractive
if ! type gpg >/dev/null; then if ! type gpg >/dev/null; then
echo "The installer needs gnupg to do keyring management." apt-get install -y gnupg
echo "Please install gnupg to proceed".
exit 1
fi fi
set -x set -x
@ -408,7 +407,7 @@ main() {
;; ;;
esac esac
$SUDO apt-get update $SUDO apt-get update
$SUDO apt-get install tailscale $SUDO apt-get install -y tailscale
if [ "$APT_SYSTEMCTL_START" = "true" ]; then if [ "$APT_SYSTEMCTL_START" = "true" ]; then
$SUDO systemctl enable --now tailscaled $SUDO systemctl enable --now tailscaled
$SUDO systemctl start tailscaled $SUDO systemctl start tailscaled

Loading…
Cancel
Save