0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-28 07:59:02 +01:00
mongodb/evergreen/sasl_windows_cyrussasl_setup.sh
Adam Rayner f31a55b83d SERVER-90184 Only load included SASL plugins on Windows
GitOrigin-RevId: a6c0787658de3b23a00da7750c660f79c6cd8d1b
2024-05-04 01:36:44 +00:00

19 lines
558 B
Bash

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"
readonly k_cyrussasl_plugin_filename="cyrus_sasl_windows_test_plugin.dll"
readonly k_cyrussasl_plugin_dir="/cygdrive/c/CMU/bin/sasl2"
plugin_path="$(find . -name "*${k_cyrussasl_plugin_filename}")"
if [[ -z "$plugin_path" ]]; then
echo >&2 "Could not find ${k_cyrussasl_plugin_filename} from path '$(pwd)' !"
exit 1
fi
echo "Configuring CyrusSASL plugin .dll from '$plugin_path'"
mkdir -p "$k_cyrussasl_plugin_dir"
cp "$plugin_path" "$k_cyrussasl_plugin_dir"