updated updater fix
This commit is contained in:
parent
c889e93ddf
commit
0721fb2922
@ -2,23 +2,6 @@
|
||||
|
||||
set -o nounset
|
||||
|
||||
|
||||
ID=$(
|
||||
|
||||
if dig @resolver4.opendns.com myip.opendns.com +short -4; then
|
||||
|
||||
exit 1
|
||||
|
||||
else
|
||||
|
||||
dig -t aaaa +short myip.opendns.com @resolver1.opendns.com
|
||||
|
||||
fi
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
|
||||
|
||||
zenity --text-info \
|
||||
@ -33,7 +16,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
else
|
||||
|
||||
|
||||
ssh root@${ID} 'flatpak update -y' |
|
||||
ssh root@localhost 'flatpak update -y' |
|
||||
|
||||
zenity --progress \
|
||||
--no-cancel \
|
||||
@ -56,7 +39,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
fi
|
||||
|
||||
|
||||
ssh root@${ID} 'cd /etc/nixos; nix flake update' |
|
||||
ssh root@localhost 'cd /etc/nixos; nix flake update' |
|
||||
|
||||
zenity --progress \
|
||||
--no-cancel \
|
||||
@ -78,7 +61,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
fi
|
||||
|
||||
ssh root@${ID} 'nixos-rebuild switch --impure' |
|
||||
ssh root@localhost 'nixos-rebuild switch --impure' |
|
||||
|
||||
zenity --progress \
|
||||
--no-cancel \
|
||||
@ -109,5 +92,4 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
||||
S
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user