fleet/tools/fleetd-linux/run-fleetd.sh
Lucas Manuel Rodriguez 2781193cdd
Added fleetd docker images to test/develop linux fleetd features (#25027)
Useful while testing/developing #24385.

In the future we can push some of these to Fleet's Docker Hub and
include them in `fleetctl preview` to allow demoing of e.g. script
execution on linux devices.
2024-12-27 16:16:39 -03:00

11 lines
227 B
Bash

#!/bin/bash
sed -i "s/placeholder/${ENROLL_SECRET}/g" /etc/default/orbit
export $(cat /etc/default/orbit | xargs)
while true; do
echo "Starting orbit..."
/opt/orbit/bin/orbit/orbit
echo "orbit exit code: $?"
sleep 5
done