fleet/tools/tuf/push_target.sh
Lucas Manuel Rodriguez b5be858071
Fix update checks for orbit at startup (#3835)
* Fix update checks for orbit at startup

* Add tests

* Add scripts for testing local TUF server

* Remove -x used for debugging
2022-02-23 14:58:07 -03:00

14 lines
445 B
Bash
Executable File

#!/bin/bash
system=$1
target_name=$2
target_path=$3
major_version=$4
TUF_PATH=test_tuf
export FLEET_ROOT_PASSPHRASE=p4ssphr4s3
export FLEET_TARGETS_PASSPHRASE=p4ssphr4s3
export FLEET_SNAPSHOT_PASSPHRASE=p4ssphr4s3
export FLEET_TIMESTAMP_PASSPHRASE=p4ssphr4s3
./build/fleetctl updates add --path $TUF_PATH --target $target_path --platform $system --name $target_name --version $major_version.0.0 -t $major_version.0 -t $major_version -t stable