diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh index b366a190abf..ac1840d61d8 100644 --- a/resources/server/bin/helpers/check-requirements-linux.sh +++ b/resources/server/bin/helpers/check-requirements-linux.sh @@ -32,7 +32,7 @@ elif [ -f /usr/lib/libstdc++.so.6 ]; then libstdcpp_path='/usr/lib/libstdc++.so.6' elif [ -f /sbin/ldconfig ]; then # Look up path - libstdcpp_paths=$(ldconfig -p | grep 'libstdc++.so.6') + libstdcpp_paths=$(/sbin/ldconfig -p | grep 'libstdc++.so.6') if [ "$(echo "$libstdcpp_paths" | wc -l)" -gt 1 ]; then libstdcpp_path=$(echo "$libstdcpp_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}') @@ -66,7 +66,7 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then libc_path='/usr/lib/libc.so.6' elif [ -f /sbin/ldconfig ]; then # Look up path - libc_paths=$(ldconfig -p | grep 'libc.so.6') + libc_paths=$(/sbin/ldconfig -p | grep 'libc.so.6') if [ "$(echo "$libc_paths" | wc -l)" -gt 1 ]; then libc_path=$(echo "$libc_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')