fixed updater script
This commit is contained in:
parent
fa0c37b944
commit
da85ef9374
@ -19,8 +19,6 @@ time_stamp=$(date +%Y-%m-%d-%T)
|
|||||||
|
|
||||||
mkdir -p /home/free/Documents/Updater_App_Logs
|
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
|
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 \
|
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"
|
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
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user