updated reseter source script

This commit is contained in:
naturallaw77 2023-06-06 23:28:07 -07:00
parent f056f35fbf
commit 67fa4502c2

View File

@ -2,15 +2,14 @@
set -o nounset
ID=$(curl ifconfig.me)
#### CREATE NEW MASTER LOGIN ####
curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Reseter/Reseter_Intro.md" |
zenity --text-info \
--title="Sovran_SystemsOS Reseter" \
--title="Sovran_SystemsOS_Reseter" \
--width=1110 \
--height=710
@ -22,6 +21,22 @@ else
#### Initial Reseter Tag
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'mkdir /var/lib/reseter ; touch /var/lib/reseter/started'
if [[ $? != 0 ]]; then
zenity --error \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS_Reseter" \
--text="Could Create New Directory for Reseter Tag"
exit 1
fi
rm -rf /home/free/.ssh/sovranpro_login
if [[ $? != 0 ]]; then
@ -78,7 +93,7 @@ zenity --error \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS_Reseter" \
--text="Could Not Sovran Pro Login Move Keys"
--text="Could Not Move New Sovran Pro Login Keys To Root"
exit 1
fi
@ -428,6 +443,21 @@ zenity --error \
fi
#### FINAL RESETER TAG ####
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'touch /var/lib/reseter/completed'
if [[ $? != 0 ]]; then
zenity --error \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS_Reseter" \
--text="Could Create Final Reseter Tag"
exit 1
fi
#### FINAL DIALOG POPUP ####