[IMP] pass DB user from secret
The password stored in Docker Secret could be passed using the `PASSWORD_FILE` environment variable. This PR allows to pass the user.
This commit is contained in:
parent
df8788b1e0
commit
1df9b67522
@ -2,6 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ -v USER_FILE ]; then
|
||||
USER="$(< $USER_FILE)"
|
||||
fi
|
||||
|
||||
if [ -v PASSWORD_FILE ]; then
|
||||
PASSWORD="$(< $PASSWORD_FILE)"
|
||||
fi
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ -v USER_FILE ]; then
|
||||
USER="$(< $USER_FILE)"
|
||||
fi
|
||||
|
||||
if [ -v PASSWORD_FILE ]; then
|
||||
PASSWORD="$(< $PASSWORD_FILE)"
|
||||
fi
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ -v USER_FILE ]; then
|
||||
USER="$(< $USER_FILE)"
|
||||
fi
|
||||
|
||||
if [ -v PASSWORD_FILE ]; then
|
||||
PASSWORD="$(< $PASSWORD_FILE)"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user