updated reseter source script
This commit is contained in:
parent
d6d481bae9
commit
8a590bfd89
@ -67,9 +67,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
PASSWDNEW=$(
|
PASSWDNEW=$(zenity --password --title="Please Type In A New Sovran Pro Updater Password")
|
||||||
|
|
||||||
zenity --password --title="Please Type In A New Sovran Pro Updater Password")
|
|
||||||
|
|
||||||
ssh-keygen -q -N "$PASSWDNEW" -t ed25519 -f /home/free/.ssh/sovranpro_login
|
ssh-keygen -q -N "$PASSWDNEW" -t ed25519 -f /home/free/.ssh/sovranpro_login
|
||||||
|
|
||||||
@ -91,17 +89,6 @@ if [[ $? -eq 1 ]]; then
|
|||||||
|
|
||||||
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'sed -i -e "0,/ssh-ed25519.*/{ s::$(cat /home/free/.ssh/sovranpro_login.pub): }" /root/.ssh/authorized_keys'
|
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'sed -i -e "0,/ssh-ed25519.*/{ s::$(cat /home/free/.ssh/sovranpro_login.pub): }" /root/.ssh/authorized_keys'
|
||||||
|
|
||||||
if [[ $? != 0 ]]; then
|
|
||||||
|
|
||||||
zenity --error \
|
|
||||||
--ellipsize \
|
|
||||||
--no-wrap \
|
|
||||||
--title="Sovran_SystemsOS_Reseter" \
|
|
||||||
--text="Could Not Move New Sovran Pro Login Keys To Root"
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user