add memcached.sh tmpl file
This commit is contained in:
parent
bbf3bd45f6
commit
5c8d7f02ad
15
entrypoint.memcached.sh.tmpl
Normal file
15
entrypoint.memcached.sh.tmpl
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ -f /run/secrets/memcached_password ]; then
|
||||
export MEMCACHED_PASSWORD=$(cat /run/secrets/memcached_password)
|
||||
else
|
||||
echo "REDIS secret not found, skipping."
|
||||
fi
|
||||
|
||||
if [ "${1#-}" != "$1" ]; then
|
||||
set -- memcached "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
x
Reference in New Issue
Block a user