PagerMaid-Modify/s6/etc/cont-init.d/40-redis

9 lines
212 B
Plaintext
Raw Normal View History

#!/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