liminix-rebuild: add --no-reboot param

pull/2/head
Daniel Barlow 2023-12-27 17:47:42 +00:00
parent 6469408d5f
commit 1a041392aa
1 changed files with 8 additions and 1 deletions

View File

@ -1,11 +1,18 @@
#!/usr/bin/env bash
ssh_command=${SSH_COMMAND-ssh}
if [ "$1" = "--no-reboot" ] ; then
reboot="true"
shift
else
reboot="reboot"
fi
target_host=$1
shift
if [ -z "$target_host" ] ; then
echo Usage: liminix-rebuild target-host params
echo Usage: liminix-rebuild [--no-reboot] target-host params
exit 1
fi