diff --git a/entrypoint.sh b/entrypoint.sh index 13171e7..b508903 100644 --- a/entrypoint.sh +++ b/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