Skip to content

Commit

Permalink
fix(redis): unixSocket logic broken for relative socket paths
Browse files Browse the repository at this point in the history
fixes #365
  • Loading branch information
shivaraj-bh committed Nov 15, 2024
1 parent 8b81987 commit 64ae2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/services/redis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64ae2de

Please sign in to comment.