Skip to content

Commit 886f612

Browse files
saiarcot895pull[bot]
authored andcommitted
[redis]: Update save disable code for new Redis version (sonic-net#18979)
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]>
1 parent d5e2e08 commit 886f612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockers/docker-database/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN apt-get clean -y && \
2828
apt-get autoclean -y && \
2929
apt-get autoremove -y && \
3030
rm -rf /debs ~/.cache && \
31-
sed -ri 's/^(save .*$)/# \1/g; \
31+
sed -ri 's/^# save ""$/save ""/g; \
3232
s/^daemonize yes$/daemonize no/; \
3333
s/^logfile .*$/logfile ""/; \
3434
s/^# syslog-enabled no$/syslog-enabled no/; \

0 commit comments

Comments
 (0)