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,42 +1,52 @@
#!/usr/bin/env bash
zenity --text \
--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)" \
--checkbox="I Agree" \
--auto-scroll
zenity --text-info \
--filename="$(curl )" \
--title="Sovran_SystemsOS Updater" \
--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")
if [ $? -eq 1 ] ; then
zenity --error \
zenity --info \
--title="Sovran_SystemsOS Updater" \
--text="Update Canceled By User"
exit 1
exit 2
else
zenity --info \
--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)"
echo -e "$password" | sudo -S rsync -av /home/free/Documents/Sovran\ Systems/My\ NixOS\ Laptop/configuration.nix /etc/nixos/configuration.nix
pushd /etc/nixos/
zenity --info \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS Updater" \
--text="$(echo -e $password | sudo -S nix flake update)"
echo -e $password | sudo -S nix flake update
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 \
--ellipsize \
--no-wrap \