Skip to content

Commit de17bef

Browse files
DEV: install redis data folder if none exists (#804)
1 parent 87871bc commit de17bef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/redis.template.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,8 @@ hooks:
8686
- replace:
8787
filename: /etc/service/unicorn/run
8888
from: "# redis"
89-
to: sv start redis || exit 1
89+
to: |
90+
if [ ! -d /shared/redis_data ]; then
91+
install -d -m 0755 -o redis -g redis /shared/redis_data
92+
fi
93+
sv start redis || exit 1

0 commit comments

Comments
 (0)