ansibleplaybookbundle / apb-base

Base image for APB development
Apache License 2.0
8 stars 14 forks source link

Add multi-line support to entrypoint.sh #55

Open jefkel opened 5 years ago

jefkel commented 5 years ago

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: https://github.com/ansibleplaybookbundle/apb-base/blob/6064ac48320392ebe93db7a31d49de526bfc2d18/files/usr/bin/entrypoint.sh#L65

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