From a75a849bdf5f542e2876957a84a10f0b1cf64846 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 25 Sep 2013 01:00:53 +0000 Subject: When looking for a named plugin, also accept soft links --- minimunin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimunin b/minimunin index 617c4bf..05b3b62 100755 --- a/minimunin +++ b/minimunin @@ -319,7 +319,7 @@ env_for_plugin_from_config() { call_plugin() { _param=$2 - _plug=`/usr/bin/find ${PLUGIN_DIR} -type f -perm +111 -name $1 2>/dev/null | /usr/bin/head -n 1` + _plug=`/usr/bin/find ${PLUGIN_DIR} \( -type l -or -type f \) -perm +111 -name $1 2>/dev/null | /usr/bin/head -n 1` [ -z "${_plug}" ] && return 1 _env=$( printf "%s\n" "${CONFIGS}" | env_for_plugin_from_config ${_plug} ) -- cgit v1.2.3