updated updater fix
This commit is contained in:
parent
ba8b940a38
commit
79213219b3
@ -2,10 +2,10 @@
|
||||
|
||||
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
|
||||
|
||||
@ -15,32 +15,12 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
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 \
|
||||
--no-cancel \
|
||||
--auto-close \
|
||||
--pulsate \
|
||||
--width=500 \
|
||||
--text="Updating Flatpaks" \
|
||||
--title="Sovran_SystemsOS Updater"'; then
|
||||
|
||||
echo "Could Not Update Flatpaks -- Exiting" |
|
||||
|
||||
zenity --text-info \
|
||||
zenity --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 \
|
||||
--title="Sovran_SystemsOS Updater"
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Could Not Update Sovran_SystemsOS -- Exiting"
|
||||
|
||||
exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user