fixup initial faiserver bootstrap & small bugs
[automated-distro-installer] / dsfull
diff --git a/dsfull b/dsfull
index c6f18759b4e711ebb33cf7c28eac1a8282962e46..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)
 
@@ -23,7 +22,7 @@ fi
 set -x
 if $reboot; then
     # untested, this caused hang using here doc.
-    ssh $host sudo bash -c "touch /tmp/keyscript-off; reboot" ||:
+    ssh $host "touch /tmp/keyscript-off; sudo reboot" ||:
 fi
 
 pxe-server fai $host