updated the updater
This commit is contained in:
parent
f296d93bc4
commit
57789c6260
@ -3,11 +3,7 @@
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
|
|
||||||
Domain=$(echo | cat /var/lib/domains/wordpress)
|
ID=$(echo | cat /var/lib/domains/wordpress)
|
||||||
|
|
||||||
ID=$(timeout S2 dig $Domain A +short)
|
|
||||||
|
|
||||||
ID6=$(timeout 2 dig $Domain AAAA +short)
|
|
||||||
|
|
||||||
|
|
||||||
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
|
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" |
|
||||||
@ -24,7 +20,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 +43,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 +65,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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user