diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-11 13:58:34 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-11 13:59:26 +0300 |
commit | 515154280a7ed6de7de9101328ed059dda001960 (patch) | |
tree | 2a7456a20c37dd843d172799d8aacbb91cf34d05 /docker | |
parent | a71ec05e011cc163b84596db497924acc2bdb90e (diff) |
docker: add redis
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/nextcloud/020-nextcloud-run.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/nextcloud/020-nextcloud-run.sh b/docker/nextcloud/020-nextcloud-run.sh index 68114e1a..076e86ea 100755 --- a/docker/nextcloud/020-nextcloud-run.sh +++ b/docker/nextcloud/020-nextcloud-run.sh @@ -10,9 +10,16 @@ OCC="$NCDIR/occ" [[ "$1" == "stop" ]] && { echo "stopping cron..." killall cron + echo "stopping redis..." + killall redis-server exit 0 } +echo "Starting Redis" +mkdir -p /var/run/redis +chown redis /var/run/redis +sudo -u redis redis-server /etc/redis/redis.conf + echo "Starting cron" cron |