From de17bef722f472139cb461bf35a9689ebd9b4e7f Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 2 Sep 2024 13:19:43 -0700 Subject: [PATCH] DEV: install redis data folder if none exists (#804) --- templates/redis.template.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/redis.template.yml b/templates/redis.template.yml index 07dc939..9044869 100644 --- a/templates/redis.template.yml +++ b/templates/redis.template.yml @@ -86,4 +86,8 @@ hooks: - replace: filename: /etc/service/unicorn/run from: "# redis" - to: sv start redis || exit 1 + to: | + if [ ! -d /shared/redis_data ]; then + install -d -m 0755 -o redis -g redis /shared/redis_data + fi + sv start redis || exit 1 -- 2.25.1