diff --git a/Dockerfile b/Dockerfile index 7c5e8cea..92dd8348 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,7 +61,7 @@ RUN chown atlpan -R /var/log/idds RUN chown apache -R /var/idds/wsgisocks/ # redis -RUN chmod a+rx /etc/redis* +RUN chmod -R a+rx /etc/redis* # RUN chmod a+rwx /var/log/redis # RUN chmod a+rwx /var/lib/redis RUN rm -fr /var/log/redis diff --git a/start-daemon.sh b/start-daemon.sh index da287701..c8f0b901 100755 --- a/start-daemon.sh +++ b/start-daemon.sh @@ -204,10 +204,10 @@ bash ${cronExec} # start redis mkdir /var/log/idds/redis -if [ ! -f /var/log/redis ]; then +if [ ! -h /var/log/redis ]; then ln -s /var/log/idds/redis /var/log/redis fi -if [ ! -f /var/lib/redis ]; then +if [ ! -h /var/lib/redis ]; then ln -s /var/log/idds/redis /var/lib/redis fi /usr/bin/redis-server /etc/redis/redis.conf --supervised systemd &