From 64ae2de590d5cec4af27e77c724bddcdc7e160fb Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Fri, 15 Nov 2024 14:48:40 +0530 Subject: [PATCH] fix(redis): `unixSocket` logic broken for relative socket paths fixes https://github.com/juspay/services-flake/issues/365 --- nix/services/redis.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/services/redis.nix b/nix/services/redis.nix index 6b5c303..aa34cc0 100644 --- a/nix/services/redis.nix +++ b/nix/services/redis.nix @@ -93,7 +93,7 @@ in let # Transform `unixSocket` by prefixing `config.dataDir` if a relative path is used transformedSocketPath = - if (config.unixSocket != null && (lib.hasPrefix "./" config.unixSocket)) then + if (config.unixSocket != null && (! lib.hasPrefix "/" config.unixSocket)) then "${config.dataDir}/${config.unixSocket}" else config.unixSocket;