Software/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh

23 lines
626 B
Bash
Raw Normal View History

2023-06-05 21:39:47 -07:00
#!/usr/bin/env bash
set -o nounset
ID=(curl ifconfig.me)
2023-06-17 13:12:50 -07:00
SCRIPT=(curl "https://https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Reseter/Reseter%20Source%20Files/Master_Passwords_Reset_Root.sh")
2023-06-17 11:46:06 -07:00
zenity --progress --no-cancel --pulsate --auto-close --title="Sovran_SystemsOS_Reseter" --text="Please Wait..." | ssh -i /home/free/.ssh/factory_login root@${ID} 'bash "${SCRIPT}"'
2023-06-05 21:39:47 -07:00
2023-06-17 11:46:06 -07:00
if [[ $? != 0 ]]; then
2023-06-05 21:39:47 -07:00
2023-06-09 15:16:26 -07:00
zenity --error \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS_Reseter" \
--text="Could Not Start"
exit 1
2023-06-17 07:44:17 -07:00
fi
exit 0