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