updated reseter source scrpit and updater script

This commit is contained in:
2023-06-06 22:22:20 -07:00
parent c4c604e450
commit f056f35fbf
2 changed files with 224 additions and 47 deletions

View File

@ -2,6 +2,8 @@
set -o nounset
ID=$(curl ifconfig.me)
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
zenity --text-info \
--title="Sovran_SystemsOS Updater" \
@ -16,7 +18,7 @@ else
#id=$(curl ifconfig.me)
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 'cd /etc/nixos; nix flake update'
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'cd /etc/nixos; nix flake update'
if [[ $? != 0 ]]; then
echo "Could not update flake -- exiting" |
@ -28,7 +30,7 @@ if [[ $? != 0 ]]; then
exit 1
fi
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 "nixos-rebuild switch --impure" |
ssh -i /home/free/.ssh/sovranpro_login root@${ID} "nixos-rebuild switch --impure" |
zenity --progress \
--no-cancel \
--auto-close \