Skip to content

Commit

Permalink
Fix migration script to add arm64 on second and third generation of p… (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmrod authored Jan 23, 2025
1 parent f93b869 commit 9ec02df
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion tools/tuf/test/migration/migration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ if [ "$SIMULATE_NEW_TUF_OUTAGE" = "1" ]; then
prompt "Please check for errors in orbit logs that new TUF server is still unavailable (404s errors). Errors should be shown every 10s."

echo "Checking version of orbit (to check device is responding even if TUF server is down)..."
for host_hostname in "${hostnames[@]}"; do
for host_hostname in "${all_hostnames[@]}"; do
ORBIT_VERSION=""
until [ "$ORBIT_VERSION" = "\"$NEW_FULL_VERSION\"" ]; do
sleep 1
Expand Down Expand Up @@ -503,6 +503,20 @@ for pkgType in "${pkgTypes[@]}"; do
--disable-open-folder \
--disable-keystore \
--update-interval=30s
if [ "$pkgType" == "deb" ] || [ "$pkgType" == "rpm" ]; then
./build/fleetctl-v4.60.0 package --type="$pkgType" \
--arch=arm64 \
--enable-scripts \
--fleet-desktop \
--fleet-url="$FLEET_URL" \
--enroll-secret="$NO_TEAM_ENROLL_SECRET" \
--debug \
--update-roots="$ROOT_KEYS1" \
--update-url=$OLD_TUF_URL \
--disable-open-folder \
--disable-keystore \
--update-interval=30s
fi
done

echo "Uninstalling fleetd package from macOS..."
Expand Down Expand Up @@ -615,6 +629,18 @@ for pkgType in "${pkgTypes[@]}"; do
--disable-open-folder \
--disable-keystore \
--update-interval=30s
if [ "$pkgType" == "deb" ] || [ "$pkgType" == "rpm" ]; then
./build/fleetctl package --type="$pkgType" \
--arch=arm64 \
--enable-scripts \
--fleet-desktop \
--fleet-url="$FLEET_URL" \
--enroll-secret="$NO_TEAM_ENROLL_SECRET" \
--debug \
--disable-open-folder \
--disable-keystore \
--update-interval=30s
fi
done

echo "Uninstalling fleetd package from macOS..."
Expand Down

0 comments on commit 9ec02df

Please sign in to comment.