updated updater fix

This commit is contained in:
naturallaw77 2023-12-02 12:03:11 -08:00
parent 70155e198c
commit 02ec303e14

View File

@ -3,9 +3,9 @@
set -o nounset
ID6=$(timeout 1 -K dig -t aaaa +short myip.opendns.com @resolver1.opendns.com)
ID=$(timeout 1 -k dig @resolver4.opendns.com myip.opendns.com +short -4)
ID=$(timeout 1 dig @resolver4.opendns.com myip.opendns.com +short -4)
ID6=$(timeout 1 dig -t aaaa +short myip.opendns.com @resolver1.opendns.com)
@ -24,7 +24,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
else
ssh root@${ID6} 'flatpak update -y' || ssh root@${ID} 'flatpak update -y' |
ssh root@${ID} 'flatpak update -y' || ssh root@${ID6} 'flatpak update -y' |
zenity --progress \
--no-cancel \
@ -47,7 +47,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi
ssh root@${ID6} 'cd /etc/nixos; nix flake update' || ssh root@${ID} 'cd /etc/nixos; nix flake update' |
ssh root@${ID} 'cd /etc/nixos; nix flake update' || ssh root@${ID6} 'cd /etc/nixos; nix flake update' |
zenity --progress \
--no-cancel \
@ -69,7 +69,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi
ssh root@${ID6} 'nixos-rebuild switch --impure' || ssh root@${ID} 'nixos-rebuild switch --impure' |
ssh root@${ID} 'nixos-rebuild switch --impure' || ssh root@${ID6} 'nixos-rebuild switch --impure' |
zenity --progress \
--no-cancel \