#!/bin/bash -lx # Deploy fai configuration to faiserver, # then start a virtual machine to test the config. set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR ssh root@faiserver rm -rf /srv/fai/config/\* scp -r /a/bin/fai/fai/config root@faiserver:/srv/fai ssh root@faiserver tee -a /srv/fai/config/class/DESKTOP.var <