mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-23 17:51:05 +00:00
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>
This commit is contained in:
parent
01e8a152f7
commit
b4947be0c8
@ -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…
x
Reference in New Issue
Block a user