File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,16 @@ msg_ok "Builded and started NPMplus"
9393motd_ssh
9494customize
9595
96- echo -e " Retrieving Default Login (Patience)"
96+ msg_info " Retrieving Default Login (Patience)"
9797for i in {1..60}; do
9898 PASSWORD_LINE=$( docker logs " $CONTAINER_ID " 2>&1 | awk ' /Creating a new user:/ {print; exit}' )
9999 if [[ -n " $PASSWORD_LINE " ]]; then
100100 PASSWORD=$( echo " $PASSWORD_LINE " | awk -F ' password: ' ' {print $2}' )
101101 echo -e
" username: [email protected] \npassword: $PASSWORD " > /opt/.npm_pwd
102102 msg_ok " Saved default login to /opt/.npm_pwd"
103- exit 0
103+ return 0
104104 fi
105105 sleep 2
106- [[ $i -eq 60 ]] && echo -e " Failed to retrieve default login credentials. Please try it manually (docker ps, docker logs)" && exit 1
107106done
107+ echo -e " Failed to retrieve default login credentials. Please try manually: docker ps, docker logs"
108+ return 1
You can’t perform that action at this time.
0 commit comments