updated updater fix
This commit is contained in:
parent
6a3d503397
commit
ecd77647e7
@ -3,10 +3,7 @@
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
|
|
||||||
ID=$(dig @resolver4.opendns.com myip.opendns.com +short -4)
|
ID=$(timeout 1 -k dig @resolver4.opendns.com myip.opendns.com +short -4 || timeout 1 dig -t aaaa +short myip.opendns.com @resolver1.opendns.com)
|
||||||
|
|
||||||
ID6=$(dig -t aaaa +short myip.opendns.com @resolver1.opendns.com)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +21,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
|||||||
else
|
else
|
||||||
|
|
||||||
|
|
||||||
ssh root@${ID} 'flatpak update -y' || ssh root@${ID6} 'flatpak update -y' |
|
ssh root@${ID} 'flatpak update -y' |
|
||||||
|
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--no-cancel \
|
--no-cancel \
|
||||||
@ -47,7 +44,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ssh root@${ID} 'cd /etc/nixos; nix flake update' || ssh root@${ID6} 'cd /etc/nixos; nix flake update' |
|
ssh root@${ID} 'cd /etc/nixos; nix flake update' |
|
||||||
|
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--no-cancel \
|
--no-cancel \
|
||||||
@ -69,7 +66,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ssh root@${ID} 'nixos-rebuild switch --impure' || ssh root@${ID6} 'nixos-rebuild switch --impure' |
|
ssh root@${ID} 'nixos-rebuild switch --impure' |
|
||||||
|
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--no-cancel \
|
--no-cancel \
|
||||||
@ -101,3 +98,4 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
S
|
Loading…
Reference in New Issue
Block a user