X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai-redep;h=b8fabac4ac14e42da83fd3f6afc6a83cd44ae8ac;hb=ffc1ca65d70d929126759df4012f5c38265adb7b;hp=6552fe3a207e4f4c1dc28cc15b87e2172e68d38b;hpb=984deb26fd29f909df9952176175719c1570ed64;p=automated-distro-installer diff --git a/fai-redep b/fai-redep index 6552fe3..b8fabac 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 <