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 and pull[bot] committed Jul 22, 2024
1 parent d5e2e08 commit 886f612
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 886f612

Please sign in to comment.