updated 'Update_Sovran_SystemsOS' and added Info For Sovran_SystemsOS Updater

This commit is contained in:
naturallaw77 2023-05-23 09:07:58 -07:00
parent 7f85d4ef56
commit a65cf23dc2
3 changed files with 47 additions and 28 deletions

View File

@ -1,10 +0,0 @@
Welcome to the Sovran_SystemsOS Updater!
This Updater will run through several stages.
Be patient...
Several windows will pop up during the process.
When it is finished, a final pop up will say complete and then you can reboot when ready.
All updates come from https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOSv2. Don't Trust, Verify!
Enjoy!

View File

@ -0,0 +1,19 @@
Welcome to the Sovran_SystemsOS Updater!
This updater will run through a few stages.
Be patient...
Several windows will pop up during the process. Keep clicking "OK."
When it is finished, a final pop up will state "Complete" and then you can reboot when ready.
All updates come from:
https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOSv2
Don't Trust, Verify!
After you have checked that the software is safe, then click "OK."
Enjoy!

View File

@ -1,41 +1,51 @@
#!/usr/bin/env bash #!/usr/bin/env bash
zenity --text \ zenity --text-info \
--filename="$(curl https://git.sovransystems.com/Sovran_Systems/Sovran_Systems_Packages/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Files/Info%20For%20Sovran_SystemsOS%20Updater.md)" \ --filename="$(curl )" \
--checkbox="I Agree" \ --title="Sovran_SystemsOS Updater" \
--auto-scroll --width=850 \
--height=730 \
--auto-scroll
if [[ $? -eq 1 ]]; then
zenity --info \
--title="Sovran_SystemsOS Updater" \
--text="Update Canceled By User"
exit 1
fi
password=$(zenity --password --title="Sovran_SystemsOS Updater") password=$(zenity --password --title="Sovran_SystemsOS Updater")
if [ $? -eq 1 ] ; then if [ $? -eq 1 ] ; then
zenity --error \ zenity --info \
--title="Sovran_SystemsOS Updater" \
--text="Update Canceled By User" --text="Update Canceled By User"
exit 1 exit 2
else else
zenity --info \ echo -e "$password" | sudo -S rsync -av /home/free/Documents/Sovran\ Systems/My\ NixOS\ Laptop/configuration.nix /etc/nixos/configuration.nix
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS Updater" \
--text="$(echo -e "$password" | sudo -S rsync -av /home/free/Documents/Sovran\ Systems/My\ NixOS\ Laptop/configuration.nix /etc/nixos/configuration.nix)"
pushd /etc/nixos/ pushd /etc/nixos/
zenity --info \ echo -e $password | sudo -S nix flake update
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS Updater" \
--text="$(echo -e $password | sudo -S nix flake update)"
popd popd
echo -e $password | sudo -S nixos-rebuild switch --impure | zenity --progress --no-cancel --auto-close --pulsate --title="Sovran_SystemsOS Updater"
echo -e $password | sudo -S nixos-rebuild switch --impure |
zenity --progress \
--no-cancel \
--auto-close \
--pulsate \
--title="Sovran_SystemsOS Updater"
zenity --info \ zenity --info \
--ellipsize \ --ellipsize \