Browse Source

Fix Root password reset on restart

master
Siroco 5 months ago
parent
commit
9fb5edfe0e
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 23
      entrypoint.sh

23
entrypoint.sh

@ -18,14 +18,21 @@ do
done < <(cat /home/packages)
# Root Passw
echo ---
echo
PASS=`openssl rand -base64 24`
echo root:$PASS | chpasswd
echo $PASS
echo
echo ---
echo
if [! -f /home/.root_passw ]; then
echo ---
echo
PASS=`openssl rand -base64 24`
echo root:$PASS | chpasswd
echo $PASS
touch /home/.root_passw
echo
echo ---
echo
else;
echo ---
echo PASSWORD YET CREATED
echo ---
fi
service ssh start

Loading…
Cancel
Save