Sha256: bbdcc66cff1eabed92d5bdddf49ff0923f6b9becccf02f5ac5f4bc5398e2c54e

Contents?: true

Size: 618 Bytes

Versions: 6

Compression:

Stored size: 618 Bytes

Contents

diff --git a/src/server.c b/src/server.c
index 280470f6..105bcd4d 100644
--- a/src/server.c
+++ b/src/server.c
@@ -4188,6 +4188,14 @@ int main(int argc, char **argv) {
         serverLog(LL_WARNING, "Configuration loaded");
     }
 
+    if (!server.requirepass) {
+      const char *password = getenv("REDIS_PASSWORD");
+      if (password != NULL) {
+        server.requirepass = zstrdup(password);
+      }
+      unsetenv("REDIS_PASSWORD");
+    }
+
     server.supervised = redisIsSupervised(server.supervised_mode);
     int background = server.daemonize && !server.supervised;
     if (background) daemonize();

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omnibus-software-23.7.295 config/patches/redis/password-from-environment.patch
omnibus-software-23.6.292 config/patches/redis/password-from-environment.patch
omnibus-software-23.6.291 config/patches/redis/password-from-environment.patch
omnibus-software-23.2.283 config/patches/redis/password-from-environment.patch
omnibus-software-23.2.281 config/patches/redis/password-from-environment.patch
omnibus-software-22.11.239 config/patches/redis/password-from-environment.patch