File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
resources/server/bin/helpers Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,13 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
81
81
# Rather than trusting the output of ldd --version (which is not always accurate)
82
82
# we instead use the version of the cached libc.so.6 file itself.
83
83
libc_real_path=$( readlink -f " $libc_path " )
84
- libc_version=$( $libc_real_path --version | sed -n ' s/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
84
+ if [ -x " $libc_real_path " ]; then
85
+ # get version from executable
86
+ libc_version=$( $libc_real_path --version | sed -n ' s/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
87
+ else
88
+ # .so is not executable on this host; try getting from strings
89
+ libc_version=$( cat " $libc_real_path " | sed -n ' s/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
90
+ fi
85
91
if [ " $( printf ' %s\n' " 2.28" " $libc_version " | sort -V | head -n1) " = " 2.28" ]; then
86
92
found_required_glibc=1
87
93
else
You can’t perform that action at this time.
0 commit comments