added new external backup app and update other apps

This commit is contained in:
2024-03-13 16:00:01 -07:00
parent 830996a69b
commit fc7b2694c8
9 changed files with 380 additions and 5 deletions

View File

@ -14,15 +14,20 @@ fi
}
SPICE () {
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
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 \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Could not complete the Sovran_SystemsOS update."
exit 1
else
zenity --info \
@ -57,4 +62,4 @@ else
fi
exit 0
exit 0