iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add wrt and fai server setup scripts
[automated-distro-installer]
/
fai-redep
diff --git
a/fai-redep
b/fai-redep
index 3e1306783b8fb535427d02b48890698a18b1809c..0c234597b34e5515de5113fc0aac9c1e5fe63551 100755
(executable)
--- a/
fai-redep
+++ b/
fai-redep
@@
-1,4
+1,5
@@
-#!/bin/bash -lx
+#!/bin/bash -l
+set -x
# Deploy fai configuration to faiserver,
# then start a virtual machine to test the config.
# Deploy fai configuration to faiserver,
# then start a virtual machine to test the config.
@@
-6,8
+7,10
@@
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
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
+cd $(dirname $(readlink -f "$BASH_SOURCE"))
+
+ssh root@faiserver rm -rf /srv/fai/config
+scp -r fai/config root@faiserver:/srv/fai
# fai example pass: fai
#ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
# fai example pass: fai
#ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'