updated source file

This commit is contained in:
naturallaw77 2023-06-03 21:36:07 -07:00
parent 526aa984af
commit 6a490f939c

View File

@ -14,7 +14,9 @@ if [[ $? -eq 1 ]]; then
else else
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 'cd /etc/nixos; nix flake update' id=(curl ifconfig.me || ifdata -pa enp2s0 || ifdata -pa wlp1s0)
ssh -i /home/free/.ssh/sovranpro_login root@${id} 'cd /etc/nixos; nix flake update'
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "Could not update flake -- exiting" | echo "Could not update flake -- exiting" |
@ -26,7 +28,7 @@ if [[ $? != 0 ]]; then
exit 1 exit 1
fi fi
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 "nixos-rebuild switch --impure" | ssh -i /home/free/.ssh/sovranpro_login root@${id} "nixos-rebuild switch --impure" |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \
--auto-close \ --auto-close \