updated the updater
This commit is contained in:
parent
6a7f777566
commit
a93e99834d
@ -21,7 +21,24 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
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 \
|
||||
@ -33,17 +50,17 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
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 \
|
||||
@ -55,13 +72,13 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
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" \
|
||||
--width=500 \
|
||||
|
||||
exit 1
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user