Skip to content

Commit

Permalink
Merge pull request #241 from HSF/dev
Browse files Browse the repository at this point in the history
fix redis
  • Loading branch information
wguanicedew authored Oct 27, 2023
2 parents 3066694 + c16e855 commit 01fb05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions start-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 01fb05d

Please sign in to comment.