depoly-host | add notifications
This commit is contained in:
parent
d5700c543a
commit
6a0a9c86ac
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ do
|
||||||
echo "==========================================================="
|
echo "==========================================================="
|
||||||
echo "= Log onto ${host} root/changeme and run nmcli if on WiFi ="
|
echo "= Log onto ${host} root/changeme and run nmcli if on WiFi ="
|
||||||
echo "==========================================================="
|
echo "==========================================================="
|
||||||
|
notify-send --urgency=critical --icon=rocket "Log onto ${host} root/changeme and run nmcli if on WiFi"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
ssh-keygen -R ${ip}
|
ssh-keygen -R ${ip}
|
||||||
|
|
@ -40,6 +41,7 @@ ssh -o StrictHostKeyChecking=accept-new root@${ip} nixos-generate-config
|
||||||
# scp root@${ip}:/etc/nixos/hardware-configuration.nix hosts/${host}/hardware-configuration.nix
|
# scp root@${ip}:/etc/nixos/hardware-configuration.nix hosts/${host}/hardware-configuration.nix
|
||||||
# git add hosts/${host}/hardware-configuration.nix
|
# git add hosts/${host}/hardware-configuration.nix
|
||||||
# nixos-rebuild switch --flake .#${host} --target-host root@${ip}
|
# nixos-rebuild switch --flake .#${host} --target-host root@${ip}
|
||||||
|
notify-send --urgency=critical --expire-time=0 --icon=cdrom "Remove boot iso"
|
||||||
read -p 'remove iso from target' foo
|
read -p 'remove iso from target' foo
|
||||||
just switch ${host}
|
just switch ${host}
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue