k3s: make update script work with all versions (#411512)

This commit is contained in:
Marcus Ramberg 2025-06-03 14:39:03 +02:00 committed by GitHub
commit 5fa68cc59e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,8 +35,7 @@ cd "$K3S_STORE_PATH"
# Set the DRONE variables as they are expected to be set in version.sh
DRONE_TAG="$LATEST_TAG_NAME"
DRONE_COMMIT="$K3S_COMMIT"
NO_DAPPER=1 # Skips git_version.sh execution in scripts/version.sh#L8
source "${K3S_STORE_PATH}/scripts/git_version.sh"
NO_DAPPER="" # Source git_version.sh in scripts/version.sh#L8
source "${K3S_STORE_PATH}/scripts/version.sh"
K3S_ROOT_SHA256=$(nix-prefetch-url --quiet --unpack \