#!/usr/bin/env bash TOP="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.." if [ $# = 0 ]; then echo "usage: reboot.sh cluster " exit 1 fi d=$1 shift nixops reboot -d $d $*