Skip to content

Commit c895e74

Browse files
DEV: always run install on redis_data directory
Fixes permissions on the directory if mis-set.
1 parent 698099d commit c895e74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/redis.template.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ run:
99
contents: |
1010
#!/bin/sh
1111
exec 2>&1
12-
if [ ! -d /shared/redis_data ]; then
13-
install -d -m 0755 -o redis -g redis /shared/redis_data
14-
fi
12+
install -d -m 0755 -o redis -g redis /shared/redis_data
1513
exec thpoff chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
1614
- file:
1715
path: /etc/service/redis/log/run

0 commit comments

Comments
 (0)