mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
Two new improvements for local TUF after feedback from @iansltx and QA folks: 1. The static `42` was confusing when making or sharing several builds of locally built fleetd. Locally TUF-built version of orbit will now be: `YY.MM.XXXXX`, e.g. `25.5.56178` (patch version is a 16-bit number made from day, hour and minute). 2. Also prompting user to delete `test_tuf` which is usually a source of confusion/errors.
21 lines
No EOL
547 B
Bash
Executable file
21 lines
No EOL
547 B
Bash
Executable file
#!/bin/bash
|
|
|
|
system=$1
|
|
target_name=$2
|
|
target_path=$3
|
|
version=$4
|
|
|
|
if [ -z "$TUF_PATH" ]; then
|
|
TUF_PATH=test_tuf
|
|
fi
|
|
export TUF_PATH
|
|
|
|
export FLEET_ROOT_PASSPHRASE=p4ssphr4s3
|
|
export FLEET_TARGETS_PASSPHRASE=p4ssphr4s3
|
|
export FLEET_SNAPSHOT_PASSPHRASE=p4ssphr4s3
|
|
export FLEET_TIMESTAMP_PASSPHRASE=p4ssphr4s3
|
|
|
|
major=$(echo $version | cut -d. -f1)
|
|
minor=$(echo $version | cut -d. -f2)
|
|
|
|
./build/fleetctl updates add --path $TUF_PATH --target $target_path --platform $system --name $target_name --version $version -t "$major.$minor" -t "$major" -t stable |