Skip to content

Commit a9fb48b

Browse files
committed
Fix relay support on macOS
1 parent b7bd9e4 commit a9fb48b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/scripts/extensions/relay.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ change_library_paths() {
4848
fi
4949
}
5050

51+
# Link hiredis library
52+
link_hiredis() {
53+
lib_dir="${brew_prefix:?}"/opt/hiredis/lib
54+
if [ -e "$lib_dir"/libhiredis_ssl.1.1.0.dylib ]; then
55+
sudo ln -sd "$lib_dir"/libhiredis_ssl.1.1.0.dylib "$lib_dir"/libhiredis_ssl.dylib.1.1.0
56+
fi
57+
}
58+
5159
# Add relay dependencies
5260
add_relay_dependencies() {
5361
add_extension json
@@ -57,6 +65,7 @@ add_relay_dependencies() {
5765
. "${0%/*}"/tools/brew.sh
5866
configure_brew
5967
brew install hiredis lz4 zstd concurrencykit
68+
link_hiredis
6069
fi
6170
}
6271

0 commit comments

Comments
 (0)