Skip to content

Commit

Permalink
[redis]: Update save disable code for new Redis version (sonic-net#18979
Browse files Browse the repository at this point in the history
)

With the upgrade of docker-database to Bookworm and the new Redis
version that was brought in, database saves are enabled by default.
However, we don't use (and maybe don't want, at this time) those
database saves.

Restore the old behavior by modifying `/etc/redis/redis.conf` to not
save at all.

Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 authored May 19, 2024
1 parent 1b0e407 commit 11b80b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-database/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /debs ~/.cache && \
sed -ri 's/^(save .*$)/# \1/g; \
sed -ri 's/^# save ""$/save ""/g; \
s/^daemonize yes$/daemonize no/; \
s/^logfile .*$/logfile ""/; \
s/^# syslog-enabled no$/syslog-enabled no/; \
Expand Down

0 comments on commit 11b80b1

Please sign in to comment.