updated updater fix
This commit is contained in:
parent
e568c7848b
commit
7071b8ae72
@ -2,20 +2,6 @@
|
||||
|
||||
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" |
|
||||
|
||||
zenity --text-info \
|
||||
@ -52,30 +38,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
fi
|
||||
|
||||
|
||||
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' |
|
||||
ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' |
|
||||
|
||||
zenity --progress \
|
||||
--auto-close \
|
||||
@ -101,7 +64,6 @@ zenity --info \
|
||||
--width=500 \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Yay Complete! Please Reboot When You Are Ready."
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user