scripts/installer: automagically run apt update (#3939)

When running this script against a totally fresh out of the box Debian
11 image, sometimes it will fail to run because it doesn't have a
package list cached. This patch adds an `apt-get update` to ensure that
the local package cache is up to date.

Signed-off-by: Xe Iaso <xe@tailscale.com>
pull/3942/head
Xe Iaso 2 years ago committed by GitHub
parent 01e8a152f7
commit b4947be0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -407,7 +407,8 @@ main() {
fi
export DEBIAN_FRONTEND=noninteractive
if ! type gpg >/dev/null; then
apt-get install -y gnupg
$SUDO apt-get update
$SUDO apt-get install -y gnupg
fi
set -x

Loading…
Cancel
Save