Example scripts
Example scripts that you can use in your lifecycle scripts.
Track setup scripts
Wait for bootstrap
#!/bin/bash
set -euxo pipefail
until [ -f /opt/instruqt/bootstrap/host-bootstrap-completed ]; do
echo "Waiting for instruqt bootstrap to complete" sleep 1
doneWait for service
while ! curl --fail --output /dev/null https://<hostname>:<port>/<path>
do
sleep 1
doneCreate a file
Download files
Start background process
Challenge check scripts
File exists
File doesn't exist
Directory exists
Directory doesn't exist
File contains certain text
Specific command is installed
Service is running
Last updated
Was this helpful?