From e6968c30180182ac0eb2b1cd5db69a10b4bc5303 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Wed, 13 Mar 2024 20:15:37 -0700 Subject: [PATCH] update updater script --- .../Update_Sovran_SystemsOS.sh | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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 \