PagerMaid-Modify/s6/etc/cont-init.d/40-redis
nevinen 60292725e0
👷 Docker supports data persistence, root permissions (#73)
👷 Docker 支持数据持久化、Root 权限 (#73)
2021-05-07 23:18:06 +08:00

7 lines
167 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
if [[ $RUN_AS_ROOT != true ]]; then
exec s6-setuidgid pagermaid redis-server --daemonize yes
else
redis-server --daemonize yes
fi