updated updater fix

This commit is contained in:
naturallaw77 2023-12-03 09:41:29 -08:00
parent e568c7848b
commit 7071b8ae72

View File

@ -2,20 +2,6 @@
set -o nounset set -o nounset
systemctl is-system-running --wait
if [[ $? -ne 0 ]]; then
echo "Could Not Start Sovran_SystemsOS_Updater - Your Sovran Pro Is Still Booting Up - Try Again In A Few Moments" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
--width=500 \
exit 1
else
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
zenity --text-info \ zenity --text-info \
@ -52,30 +38,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' |
ssh root@localhost 'cd /etc/nixos; nix flake update' |
zenity --progress \
--no-cancel \
--auto-close \
--pulsate \
--width=500 \
--text="Moving Files Into Place..." \
--title="Sovran_SystemsOS Updater"
if [[ $? -ne 0 ]]; then
echo "Could Not Update Flake -- Exiting" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
--width=500 \
exit 1
fi
ssh root@localhost 'nixos-rebuild switch --impure' |
zenity --progress \ zenity --progress \
--auto-close \ --auto-close \
@ -101,7 +64,6 @@ zenity --info \
--width=500 \ --width=500 \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
--text="Yay Complete! Please Reboot When You Are Ready." --text="Yay Complete! Please Reboot When You Are Ready."
fi
fi
fi
exit 0 exit 0