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 128198e..56cb465 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -19,7 +19,28 @@ time_stamp=$(date +%Y-%m-%d-%T) mkdir -p /home/free/Documents/Updater_App_Logs -if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' ; then +if ! ssh root@localhost 'cd /etc/nixos && nix flake update' ; then + + zenity --error \ + --width=400 \ + --title="Sovran_SystemsOS Updater" \ + --text="Could not complete the Sovran_SystemsOS flake update." + + exit 1 + + + +if ! ssh root@localhost 'nixos-rebuild dry-activate --impure' ; then + + zenity --error \ + --width=400 \ + --title="Sovran_SystemsOS Updater" \ + --text="Could not complete the test Sovran_SystemsOS update." + + exit 1 + + +if ! ssh root@localhost 'nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then zenity --error \ --width=400 \