Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-line support to entrypoint.sh #55

Open
wants to merge 1 commit into
base: release-1.2
Choose a base branch
from
Open

Add multi-line support to entrypoint.sh #55

wants to merge 1 commit into from

Conversation

jefkel
Copy link

@jefkel jefkel commented Dec 29, 2018

This PR adds some specific multi-line secret support to the release-1.2 branch by using wc to detect when a secret is multi-line and adding the expected | before adding the secret contents.

/usr/bin/wc from bin-utils
/usr/bin/sed from sed

The same (or similar) fix may work in the 1.3 or master branches to replace the following:

echo "$file: $(cat ${SECRETS_DIR}/${key}/..data/${file})" >> $PASSWORDS

However, I haven't done any testing on those branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant