From 0721fb29220cd56b11b4e77afac583ae14fbfe39 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 2 Dec 2023 13:24:02 -0800 Subject: [PATCH] updated updater fix --- .../Update_Sovran_SystemsOS.sh | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh index a4fdf27..38a9d05 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -2,23 +2,6 @@ set -o nounset - -ID=$( - - if dig @resolver4.opendns.com myip.opendns.com +short -4; then - - exit 1 - - else - - dig -t aaaa +short myip.opendns.com @resolver1.opendns.com - - fi - - ) - - - curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | zenity --text-info \ @@ -33,7 +16,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr else - ssh root@${ID} 'flatpak update -y' | + ssh root@localhost 'flatpak update -y' | zenity --progress \ --no-cancel \ @@ -56,7 +39,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr fi - ssh root@${ID} 'cd /etc/nixos; nix flake update' | + ssh root@localhost 'cd /etc/nixos; nix flake update' | zenity --progress \ --no-cancel \ @@ -78,7 +61,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr fi - ssh root@${ID} 'nixos-rebuild switch --impure' | + ssh root@localhost 'nixos-rebuild switch --impure' | zenity --progress \ --no-cancel \ @@ -109,5 +92,4 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr fi -exit 0 -S \ No newline at end of file +exit 0 \ No newline at end of file