From b9fae52ec58c16c4d3d648d0b093e535abb8e584 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 17 Jun 2023 17:15:39 -0700 Subject: [PATCH] updated master script --- .../Master_Passwords_Reset.sh | 39 ++++--------------- 1 file changed, 8 insertions(+), 31 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 6e27dd5..8956500 100644 --- a/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh +++ b/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset.sh @@ -22,20 +22,21 @@ else #### Check to See If It Has Been Run Before #### -FILE=$(/var/lib/beacons/reseter/completed) +FILE=/var/lib/beacons/reseter/completed - if [ -f {$FILE} ]; then + if [ -e $FILE ]; then - zenity --error \ + zenity --info \ --ellipsize \ --no-wrap \ + --width=250 \ --title="Sovran_SystemsOS_Reseter" \ - --text="Will Not Start, Already Completed" - + --text="Already Completed" + exit 1 - else - + fi + #### Initial Reseter Tag #### @@ -107,30 +108,6 @@ FILE=$(/var/lib/beacons/reseter/completed) fi - - - -#### BEGIN SCRIPT #### - -zenity --progress --no-cancel --pulsate --auto-close --width=700 --title="Sovran_SystemsOS_Reseter" --text="Please Wait. Passwords Are Being Reset. This May Take Some Time..." & - -if [[ $? != 0 ]]; then - -zenity --error \ - --ellipsize \ - --no-wrap \ - --title="Sovran_SystemsOS_Reseter" \ - --text="Could Not Start Reset of Passwords" - - exit 1 - -else - - - - - - #### RESET KEYS FOR AGENIX #### ### Make Backup Directory ####