updated all files
This commit is contained in:
18
Sovran_SystemsOS_Updater/Updater Source Files/Intro.md
Normal file
18
Sovran_SystemsOS_Updater/Updater Source Files/Intro.md
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
Welcome to the Sovran_SystemsOS Updater!
|
||||
|
||||
This updater will run through a few stages.
|
||||
|
||||
Be patient...
|
||||
|
||||
A couple windows will pop up during the process. Keep clicking "OK."
|
||||
|
||||
When it is finished, a final pop up will state "Complete! Please Reboot." and then you can reboot when ready.
|
||||
|
||||
All updates come from here: https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOSv2
|
||||
|
||||
Don't Trust, Verify!
|
||||
|
||||
After you have checked that the software is safe from the link above, then click "OK."
|
||||
|
||||
Enjoy!
|
57
Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS
Executable file
57
Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS
Executable file
@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
cat "/home/free/Documents/Sovran Systems/Git Sovran Systems/Sovran_Systems_Packages_Git/Sovran_SystemsOS_Updater/Updater Source Files/Intro.md" |
|
||||
zenity --text-info \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--width=1110 \
|
||||
--height=705
|
||||
|
||||
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 --info \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Update Canceled By User"
|
||||
|
||||
exit 2
|
||||
|
||||
else
|
||||
|
||||
|
||||
echo -e "$password" | sudo -S rsync -av /home/free/Documents/Sovran\ Systems/My\ NixOS\ Laptop/configuration.nix /etc/nixos/configuration.nix
|
||||
|
||||
|
||||
pushd /etc/nixos/
|
||||
|
||||
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"
|
||||
|
||||
|
||||
zenity --info \
|
||||
--ellipsize \
|
||||
--no-wrap \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Complete! Please Reboot."
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user