Software/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS_Helper.sh

41 lines
1.0 KiB
Bash
Raw Normal View History

2023-12-05 11:08:21 -08:00
#!/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 \
--width=1000 \
--height=700 \
--title="Sovran_SystemsOS Updater"
if [[ $? -eq 1 ]]; then
exit 1
else
cd /home/free/Downloads
2023-12-05 11:13:02 -08:00
wget "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Update_Sovran_SystemsOS.sh"
2023-12-05 11:08:21 -08:00
2023-12-05 11:13:02 -08:00
if ! ssh root@localhost 'bash /home/free/Downloads/Update_Sovran_SystemsOS.sh | zenity --progress --no-cancel --pulsate --auto-close --width=500 --title="Sovran_SystemsOS_Reseter" --text="Please Wait. Passwords Are Being Reset. This May Take Some Time..."' ; then
2023-12-05 11:08:21 -08:00
zenity --error \
--title="Sovran_SystemsOS Updater" \
--text="Could Not Log In"
exit 1
fi
rm -rf /home/free/Downloads/Master_Passwords_Reset_Root.sh
zenity --info \
--ellipsize \
--no-wrap \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Yay Complete! Please Reboot When You Are Ready."
exit 0