This commit is contained in:
Sam Heinz
2025-04-15 00:42:37 +10:00
parent 6a3f219f0f
commit 514584c6ee

View File

@@ -90,7 +90,7 @@ customize
msg_info "Retrieving Default Login (Patience)"
PASSWORD_FOUND=0
for i in {1..60}; do
PASSWORD_LINE=$(docker logs "$CONTAINER_ID" 2>&1 | awk '/Creating a new user:/ { print; exit }')
PASSWORD_LINE=$(docker logs npmplus 2>&1 | awk '/Creating a new user:/ { print; exit }')
if [[ -n "$PASSWORD_LINE" ]]; then
PASSWORD=$(echo "$PASSWORD_LINE" | awk -F 'password: ' '{print $2}')
echo -e "username: admin@example.org\npassword: $PASSWORD" >/opt/.npm_pwd
@@ -103,5 +103,5 @@ done
if [[ $PASSWORD_FOUND -eq 0 ]]; then
msg_error "Could not retrieve default login after 60 seconds."
echo -e "\nYou can manually check the container logs with:\n docker logs $CONTAINER_ID | grep 'Creating a new user:'\n"
echo -e "\nYou can manually check the container logs with:\n docker logs npmplus | grep 'Creating a new user:'\n"
fi