added password rester-test
This commit is contained in:
@ -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!
|
@ -0,0 +1,56 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
|
||||
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" \
|
||||
--width=1110 \
|
||||
--height=710
|
||||
|
||||
if [[ $? -eq 1 ]]; then
|
||||
|
||||
exit 1
|
||||
|
||||
else
|
||||
|
||||
#id=$(curl ifconfig.me)
|
||||
|
||||
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 'cd /etc/nixos; nix flake update'
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "Could not update flake -- exiting" |
|
||||
zenity --text-info \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--width=1110 \
|
||||
--height=710
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ssh -i /home/free/.ssh/sovranpro_login root@192.168.1.32 "nixos-rebuild switch --impure" |
|
||||
zenity --progress \
|
||||
--no-cancel \
|
||||
--auto-close \
|
||||
--pulsate \
|
||||
--title="Sovran_SystemsOS Updater"
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "Could not Update Sovran_SystemsOS -- exiting" |
|
||||
zenity --text-info \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--width=1110 \
|
||||
--height=710
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
zenity --info \
|
||||
--ellipsize \
|
||||
--no-wrap \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Complete! Please Reboot."
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
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" \
|
||||
--width=1110 \
|
||||
--height=710
|
||||
|
||||
if [[ $? -eq 1 ]]; then
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
password=$(zenity --password --title="Sovran_SystemsOS Updater")
|
||||
|
||||
if [ $? -eq 1 ] ; then
|
||||
|
||||
exit 2
|
||||
|
||||
else
|
||||
|
||||
|
||||
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