From 67fa4502c2e938579613929d608ce53c5af753e2 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 6 Jun 2023 23:28:07 -0700 Subject: [PATCH] updated reseter source script --- .../Master_Passwords_Reset.sh | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh b/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh index 7970d68..63189f5 100644 --- a/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh +++ b/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh @@ -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 ####