fixup initial faiserver bootstrap & small bugs
[automated-distro-installer] / dsfull
diff --git a/dsfull b/dsfull
index 44588bab377722cd45d102afa7492636bf929120..5d50eab67da525f951d40f227c051d9a1c9d7baf 100755 (executable)
--- a/dsfull
+++ b/dsfull
@@ -1,6 +1,5 @@
 #!/bin/bash -l
 # Copyright (C) 2016 Ian Kelling
-# This program is under GPL v. 3 or later, see <http://www.gnu.org/licenses/>
 
 # distro setup full. (assuming we already synced data files to the host)
 
@@ -22,10 +21,8 @@ fi
 
 set -x
 if $reboot; then
-    ssh $host sudo bash <<'EOF' || [[ $? == 255 ]]
-touch /tmp/keyscript-off
-reboot
-EOF
+    # untested, this caused hang using here doc.
+    ssh $host "touch /tmp/keyscript-off; sudo reboot" ||:
 fi
 
 pxe-server fai $host