add memcached.sh tmpl file

This commit is contained in:
brooke 2025-02-12 18:37:40 -05:00
parent bbf3bd45f6
commit 5c8d7f02ad

View 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 "$@"