From a7ad9f61b20db8be12a62e73c461b6b027be4477 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Wed, 13 Mar 2024 21:09:40 -0700 Subject: [PATCH] update updater script --- .../Updater Source Files/Update_Sovran_SystemsOS_Light.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh index 9b3937e..0f7ce27 100755 --- a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh +++ b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh @@ -19,9 +19,7 @@ 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 &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then +if ! xterm -T "Sovran_SystemsOS Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'" ; then zenity --error \ --width=500 \ @@ -62,6 +60,8 @@ else SPICE | zenity --progress --no-cancel --auto-close --width=750 --pulsate --text="Updating now. In rare cases, it could take up to 1 hour. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS_Light Updater" + find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +5 -delete + fi exit 0 \ No newline at end of file