updated updater

This commit is contained in:
naturallaw77 2023-12-05 18:36:51 -08:00
parent 36c85025e6
commit 4b29bba320

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SSH=$(ssh root@localhost)
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 \
@ -13,7 +15,7 @@ if [[ $? -eq 1 ]]; then
else else
if ! ssh root@localhost 'flatpak update -y' ; then if ! $SSH 'flatpak update -y' ; then
zenity --error \ zenity --error \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
@ -24,7 +26,7 @@ else
fi fi
if ! ssh root@localhost 'cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure' ; then if ! $SSH 'cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure' ; then
zenity --error \ zenity --error \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \