X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai-redep;h=97302608703b55acb479795740e663e12e3a79de;hb=afabe0c27af744200aa6b6e05c5b2ab7d7518c1e;hp=64368e420fab64767893b1970a66dae2b8995819;hpb=604a522486fe83ad027508100575776161c8bc91;p=automated-distro-installer diff --git a/fai-redep b/fai-redep index 64368e4..9730260 100755 --- a/fai-redep +++ b/fai-redep @@ -1,28 +1,53 @@ -#!/bin/bash -lx +#!/bin/bash -l +set -x # 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 +trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' 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 <