16 lines
262 B
Bash
16 lines
262 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -f /run/secrets/memcached_password ]; then
|
|
export "MEMCACHED_PASSWORD=$(cat /run/secrets/memcached_password)"
|
|
else
|
|
echo "memcached_password not found, skipping."
|
|
fi
|
|
|
|
if [ "${1#-}" != "$1" ]; then
|
|
set -- memcached "$@"
|
|
fi
|
|
|
|
exec "$@"
|