update updater script

This commit is contained in:
naturallaw77 2024-03-13 20:15:37 -07:00
parent 66ce759941
commit e6968c3018

View File

@ -19,7 +19,28 @@ time_stamp=$(date +%Y-%m-%d-%T)
mkdir -p /home/free/Documents/Updater_App_Logs mkdir -p /home/free/Documents/Updater_App_Logs
if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' ; then if ! ssh root@localhost 'cd /etc/nixos && nix flake update' ; then
zenity --error \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Could not complete the Sovran_SystemsOS flake update."
exit 1
if ! ssh root@localhost 'nixos-rebuild dry-activate --impure' ; then
zenity --error \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Could not complete the test Sovran_SystemsOS update."
exit 1
if ! ssh root@localhost 'nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then
zenity --error \ zenity --error \
--width=400 \ --width=400 \