updated updater fix

This commit is contained in:
naturallaw77 2023-12-02 13:24:02 -08:00
parent c889e93ddf
commit 0721fb2922

View File

@ -2,23 +2,6 @@
set -o nounset 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" | curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
zenity --text-info \ zenity --text-info \
@ -33,7 +16,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
else else
ssh root@${ID} 'flatpak update -y' | ssh root@localhost 'flatpak update -y' |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \
@ -56,7 +39,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
ssh root@${ID} 'cd /etc/nixos; nix flake update' | ssh root@localhost 'cd /etc/nixos; nix flake update' |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \
@ -78,7 +61,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
ssh root@${ID} 'nixos-rebuild switch --impure' | ssh root@localhost 'nixos-rebuild switch --impure' |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \
@ -109,5 +92,4 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
exit 0 exit 0
S