updated updater fix

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

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash
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 \
--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 \
--height=700
@ -14,33 +14,13 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
exit 1
else
if ! ssh root@localhost 'flatpak update -y |
zenity --progress \
--no-cancel \
--auto-close \
--pulsate \
--width=500 \
--text="Updating Flatpaks" \
--title="Sovran_SystemsOS Updater"'; then
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
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 \
zenity --info \
--width=400 \
--title="Sovran_SystemsOS Updater"
--title="Sovran_SystemsOS Updater" \
--text="Could Not Update Sovran_SystemsOS -- Exiting"
exit 1