From 7071b8ae724d8eaa534f469eb235638d5efcd442 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sun, 3 Dec 2023 09:41:29 -0800 Subject: [PATCH] updated updater fix --- .../Update_Sovran_SystemsOS.sh | 42 +------------------ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh index f2fafc7..71a2e22 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -2,20 +2,6 @@ set -o nounset -systemctl is-system-running --wait - - if [[ $? -ne 0 ]]; then - - echo "Could Not Start Sovran_SystemsOS_Updater - Your Sovran Pro Is Still Booting Up - Try Again In A Few Moments" | - - zenity --text-info \ - --title="Sovran_SystemsOS Updater" \ - --width=500 \ - - exit 1 - - else - curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | zenity --text-info \ @@ -52,30 +38,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr fi - - ssh root@localhost 'cd /etc/nixos; nix flake update' | - - zenity --progress \ - --no-cancel \ - --auto-close \ - --pulsate \ - --width=500 \ - --text="Moving Files Into Place..." \ - --title="Sovran_SystemsOS Updater" - - if [[ $? -ne 0 ]]; then - - echo "Could Not Update Flake -- Exiting" | - - zenity --text-info \ - --title="Sovran_SystemsOS Updater" \ - --width=500 \ - - exit 1 - - fi - - ssh root@localhost 'nixos-rebuild switch --impure' | + ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' | zenity --progress \ --auto-close \ @@ -101,7 +64,6 @@ zenity --info \ --width=500 \ --title="Sovran_SystemsOS Updater" \ --text="Yay Complete! Please Reboot When You Are Ready." - fi -fi + exit 0 \ No newline at end of file