updated the updater

This commit is contained in:
naturallaw77 2023-12-01 09:45:44 -08:00
parent 6a7f777566
commit a93e99834d

View File

@ -21,7 +21,24 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
else else
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'cd /etc/nixos; nix flake update' || ssh -i /home/free/.ssh/sovranpro_login root@${ID6} 'cd /etc/nixos; nix flake update' |
flatpak update -y
if [[ $? != 0 ]]; then
echo "Could Not Update Flatpaks --
Exiting" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
--width=500 \
exit 1
fi
ssh root@${ID} 'cd /etc/nixos; nix flake update' || ssh root@${ID6} 'cd /etc/nixos; nix flake update' |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \
@ -43,7 +60,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'cd /etc/nixos; nix flake update' || ssh -i /home/free/.ssh/sovranpro_login root@${ID6} "nixos-rebuild switch --impure" | ssh root@${ID} 'nixos-rebuild switch --impure' || ssh root@${ID6} 'nixos-rebuild switch --impure' |
zenity --progress \ zenity --progress \
--no-cancel \ --no-cancel \