From 66f6efa8cb9877bbfcf6a5ab91acf915bda91bbd Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 11 Jan 2022 09:03:51 -0800 Subject: [PATCH] scripts: install gnupg deb, pass --yes to apt-get Fixes #3685 Fixes #3528 Fixes #3649 Change-Id: Ie029fca6cf3d07a77d228e9591ec1c1c828e68af Signed-off-by: Brad Fitzpatrick --- scripts/installer.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 3bd28ffc3..173e85e76 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -389,10 +389,9 @@ main() { echo "Please install either curl or wget to proceed." exit 1 fi + export DEBIAN_FRONTEND=noninteractive if ! type gpg >/dev/null; then - echo "The installer needs gnupg to do keyring management." - echo "Please install gnupg to proceed". - exit 1 + apt-get install -y gnupg fi set -x @@ -408,7 +407,7 @@ main() { ;; esac $SUDO apt-get update - $SUDO apt-get install tailscale + $SUDO apt-get install -y tailscale if [ "$APT_SYSTEMCTL_START" = "true" ]; then $SUDO systemctl enable --now tailscaled $SUDO systemctl start tailscaled