diff --git a/scripts/update-all-machines b/scripts/update-all-machines index 6098ea2..0c36ef3 100755 --- a/scripts/update-all-machines +++ b/scripts/update-all-machines @@ -35,7 +35,7 @@ for host in "${hosts[@]}"; do nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom else echo "$fqdn with reboot" - nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom + nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" ssh -i $rsa_key $fqdn 'sudo reboot' fi echo diff --git a/scripts/update-single-machine b/scripts/update-single-machine index 3dea974..561143b 100755 --- a/scripts/update-single-machine +++ b/scripts/update-single-machine @@ -14,7 +14,7 @@ while getopts ":r" option; do host=$2 fqdn="$host.2li.local" echo "$fqdn with reboot" - nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom + nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" ssh -i $rsa_key $fqdn 'sudo reboot' ;; esac