added new external backup app and update other apps
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user