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
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 \
@ -110,4 +93,3 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi
exit 0
S