From 11b80b110a9f99c898bf8587f2c32a09a49d3d3b Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Sun, 19 May 2024 09:41:36 -0700 Subject: [PATCH] [redis]: Update save disable code for new Redis version (#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 --- dockers/docker-database/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-database/Dockerfile.j2 b/dockers/docker-database/Dockerfile.j2 index b73762da59e1..6f39d0ac5f58 100644 --- a/dockers/docker-database/Dockerfile.j2 +++ b/dockers/docker-database/Dockerfile.j2 @@ -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/; \