From da85ef9374da77b50a90b1de296261a15fb0e701 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Wed, 13 Mar 2024 18:14:07 -0700 Subject: [PATCH] fixed updater script --- .../Updater Source Files/Update_Sovran_SystemsOS.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ed3ba52..f8d4a40 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -19,8 +19,6 @@ time_stamp=$(date +%Y-%m-%d-%T) mkdir -p /home/free/Documents/Updater_App_Logs -find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +5 -delete - 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 \ @@ -62,6 +60,8 @@ else 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 + fi exit 0