mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
scripts: remove host_find_libraries.sh
Not needed after we switch to using native alpine image
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
add_host_specific_libraries() {
|
||||
for libraries in 'libsoftokn3.so' 'libsqlite3.so.0' 'libfreeblpriv3.so'; do
|
||||
lib_path=""
|
||||
for base_lib_path in '/lib64/' '/lib/' '/usr/lib/x86_64-linux-gnu/' '/lib/x86_64-linux-gnu/'; do
|
||||
if [ ! -e $base_lib_path ]; then
|
||||
continue
|
||||
fi
|
||||
lib_path="$(find $base_lib_path -name $libraries -print -quit)"
|
||||
if [ -z "$lib_path" ]; then
|
||||
continue
|
||||
fi
|
||||
real_lib_path="$(readlink -f $lib_path)"
|
||||
cp $real_lib_path $1/lib/$libraries
|
||||
break
|
||||
done
|
||||
if [ -z "$lib_path" ]; then
|
||||
echo "failed find $libraries ..."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
add_host_specific_libraries $@
|
||||
Reference in New Issue
Block a user