#!/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)
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 sudo bash -c "touch /tmp/keyscript-off; reboot" ||:
fi
pxe-server fai $host