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 dde1440..1379d44 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -13,6 +13,29 @@ fi } + +CASHU () { + +if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then + + zenity --error \ + --width=400 \ + --title="Sovran_SystemsOS Updater" \ + --text="Could not complete the Sovran_SystemsOS update." + + exit 1 + +else + + exit 1 + +fi + + +} + + + SPICE () { time_stamp=$(date +%Y-%m-%d-%T) @@ -82,6 +105,8 @@ else FLATPAK | zenity --progress --no-cancel --auto-close --width=460 --pulsate --text="Updating Flatpaks now..." --title="Sovran_SystemsOS Updater" + CASHU + SPICE | zenity --progress --no-cancel --auto-close --width=850 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS Updater" find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +5 -delete