Sovran_SystemsOS_Light/Update_Sovran_SystemsOS_Helper.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2023-12-06 12:06:58 -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
wget "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Update_Sovran_SystemsOS_Helper.sh"
if ! ssh root@localhost 'bash /home/free/Downloads/Update_Sovran_SystemsOS_Helper.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
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