updated updater fix

This commit is contained in:
naturallaw77 2023-12-04 00:59:09 -08:00
parent ba8b940a38
commit 79213219b3

View File

@ -2,10 +2,10 @@
set -o nounset set -o nounset
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 \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
--html \
--url="https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" \
--width=1000 \ --width=1000 \
--height=700 --height=700
@ -15,32 +15,12 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
else else
if ! ssh root@localhost 'flatpak update -y | if ! xterm -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'flatpak update -y && cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'"; then
zenity --progress \ zenity --info \
--no-cancel \
--auto-close \
--pulsate \
--width=500 \
--text="Updating Flatpaks" \
--title="Sovran_SystemsOS Updater"'; then
echo "Could Not Update Flatpaks -- Exiting" |
zenity --text-info \
--width=400 \
--title="Sovran_SystemsOS Updater"
exit 1
fi
if ! xterm -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'"; then
echo "Could Not Update Sovran_SystemsOS -- Exiting" |
zenity --text-info \
--width=400 \ --width=400 \
--title="Sovran_SystemsOS Updater" --title="Sovran_SystemsOS Updater" \
--text="Could Not Update Sovran_SystemsOS -- Exiting"
exit 1 exit 1