updated Update_Sovran_SystemsOS.sh

This commit is contained in:
naturallaw77 2023-06-04 11:34:24 -07:00
parent fd7dd15c8a
commit deef299072

View File

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