updated master script
This commit is contained in:
parent
90aec3594b
commit
69d19cf2a1
@ -20,10 +20,24 @@ if [[ $? -eq 1 ]]; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
|
|
||||||
|
#### Check to See If It Has Been Run Before ####
|
||||||
|
|
||||||
#### Initial Reseter Tag
|
if [ ! -f /var/lib/beacons/reseter ]; then
|
||||||
|
|
||||||
ssh -i /home/free/.ssh/factory_login root@${ID} 'mkdir /var/lib/reseter ; touch /var/lib/reseter/started'
|
zenity --error \
|
||||||
|
--ellipsize \
|
||||||
|
--no-wrap \
|
||||||
|
--title="Sovran_SystemsOS_Reseter" \
|
||||||
|
--text="Will Not Start, Already Completed"
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
|
||||||
|
#### Initial Reseter Tag ####
|
||||||
|
|
||||||
|
ssh -i /home/free/.ssh/factory_login root@${ID} 'mkdir /var/lib/beacons ; touch /var/lib/beacons/reseter/started'
|
||||||
|
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
|
|
||||||
@ -31,11 +45,12 @@ ssh -i /home/free/.ssh/factory_login root@${ID} 'mkdir /var/lib/reseter ; touch
|
|||||||
--ellipsize \
|
--ellipsize \
|
||||||
--no-wrap \
|
--no-wrap \
|
||||||
--title="Sovran_SystemsOS_Reseter" \
|
--title="Sovran_SystemsOS_Reseter" \
|
||||||
--text="Could Not Start, Already Completed"
|
--text="Could Not Create Reseter Tag"
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#### Create New Log In Key For the Local Sovran Pro ####
|
||||||
|
|
||||||
PASS=$(zenity --password --title="Please Type In A New Sovran Pro Updater Password")
|
PASS=$(zenity --password --title="Please Type In A New Sovran Pro Updater Password")
|
||||||
|
|
||||||
@ -73,7 +88,7 @@ ssh -i /home/free/.ssh/factory_login root@${ID} 'sed -i -e "0,/ssh-ed25519.*/{ s
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf /home/free/.ssh/factory_login /home/free/.ssh/factory_login.pub
|
rm -rf /home/free/.ssh/factory_login /home/free/.ssh/factory_login.pub
|
||||||
|
|
||||||
@ -463,7 +478,7 @@ fi
|
|||||||
|
|
||||||
#### FINAL RESETER TAG ####
|
#### FINAL RESETER TAG ####
|
||||||
|
|
||||||
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'touch /var/lib/reseter/completed'
|
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'touch /var/lib/beacons/reseter/completed'
|
||||||
|
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user