updated reseter source scrpit and updater script
This commit is contained in:
@ -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 \
|
||||
|
Reference in New Issue
Block a user