PagerMaid-Modify/s6/etc/cont-init.d/40-redis
nevinen c59566d458
docker supports custom installation of pypi dependencies (#79)
 docker 支持自定义安装 pypi 依赖 (#79)

* 有些插件额外需要一些未安装的依赖,支持用户自己定义`requirements2.txt`,创建容器时即自动安装好,这样更新镜像或重建容器不影响这些插件的使用。
2021-05-28 20:31:00 +08:00

9 lines
208 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
perl -i -pe "{
s|^dir /var/lib/redis|dir /pagermaid/workdir|;
s|^save \d+ 1|save 60 1|;
}" /etc/redis/redis.conf
cd /pagermaid/workdir
redis-server /etc/redis/redis.conf