From a93e99834df716d7b252852bc822ebcbe12c307b Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 1 Dec 2023 09:45:44 -0800 Subject: [PATCH] updated the updater --- .../Update_Sovran_SystemsOS.sh | 43 +++++++++++++------ 1 file changed, 30 insertions(+), 13 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 49e0f70..d2d2a84 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -16,12 +16,29 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr --height=700 if [[ $? -eq 1 ]]; then - + exit 1 else - ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'cd /etc/nixos; nix flake update' || ssh -i /home/free/.ssh/sovranpro_login root@${ID6} 'cd /etc/nixos; nix flake update' | + + flatpak update -y + + if [[ $? != 0 ]]; then + + echo "Could Not Update Flatpaks -- + Exiting" | + + zenity --text-info \ + --title="Sovran_SystemsOS Updater" \ + --width=500 \ + + exit 1 + + fi + + + ssh root@${ID} 'cd /etc/nixos; nix flake update' || ssh root@${ID6} 'cd /etc/nixos; nix flake update' | zenity --progress \ --no-cancel \ @@ -32,18 +49,18 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr --title="Sovran_SystemsOS Updater" if [[ $? != 0 ]]; then - - echo "Could Not Update Flake -- Exiting" | + + echo "Could Not Update Flake -- Exiting" | zenity --text-info \ --title="Sovran_SystemsOS Updater" \ --width=500 \ - - exit 1 + + exit 1 fi - ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'cd /etc/nixos; nix flake update' || ssh -i /home/free/.ssh/sovranpro_login root@${ID6} "nixos-rebuild switch --impure" | + ssh root@${ID} 'nixos-rebuild switch --impure' || ssh root@${ID6} 'nixos-rebuild switch --impure' | zenity --progress \ --no-cancel \ @@ -54,14 +71,14 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr --title="Sovran_SystemsOS Updater" if [[ $? != 0 ]]; then - - echo "Could Not Update Sovran_SystemsOS -- Exiting" | - - zenity --text-info \ + + echo "Could Not Update Sovran_SystemsOS -- Exiting" | + + zenity --text-info \ --title="Sovran_SystemsOS Updater" \ --width=500 \ - - exit 1 + + exit 1 fi