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 \
@ -33,17 +50,17 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "Could Not Update Flake -- Exiting" | echo "Could Not Update Flake -- Exiting" |
zenity --text-info \ zenity --text-info \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
--width=500 \ --width=500 \
exit 1 exit 1
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 \
@ -55,13 +72,13 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "Could Not Update Sovran_SystemsOS -- Exiting" | echo "Could Not Update Sovran_SystemsOS -- Exiting" |
zenity --text-info \ zenity --text-info \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
--width=500 \ --width=500 \
exit 1 exit 1
fi fi