X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai-redep;h=4e354a2d176fb4b2cde8e26483aadc5579c2cad0;hb=1885f9677fdf2bfeac95285cf13a7d60273d096a;hp=97ccfaeb3dccf6956fcc788ad23fe3da56ef8375;hpb=2eebb95531424e04797094d622eebdd7ece5b38b;p=automated-distro-installer diff --git a/fai-redep b/fai-redep index 97ccfae..4e354a2 100755 --- a/fai-redep +++ b/fai-redep @@ -16,13 +16,23 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 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 $?" >&2' ERR -cd $(dirname $(readlink -f "$BASH_SOURCE")) +x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*} + +usage() { + cat <