updated the updater

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

View File

@ -16,12 +16,29 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
--height=700
if [[ $? -eq 1 ]]; then
exit 1
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 \
--no-cancel \
@ -32,18 +49,18 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
--title="Sovran_SystemsOS Updater"
if [[ $? != 0 ]]; then
echo "Could Not Update Flake -- Exiting" |
echo "Could Not Update Flake -- Exiting" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
--width=500 \
exit 1
exit 1
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 \
--no-cancel \
@ -54,14 +71,14 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
--title="Sovran_SystemsOS Updater"
if [[ $? != 0 ]]; then
echo "Could Not Update Sovran_SystemsOS -- Exiting" |
zenity --text-info \
echo "Could Not Update Sovran_SystemsOS -- Exiting" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
--width=500 \
exit 1
exit 1
fi