mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update install.sh
This commit is contained in:
@@ -69,9 +69,10 @@ fi
|
|||||||
|
|
||||||
VERSION_ID=`cat /etc/*-release | grep 'VERSION_ID' | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
|
VERSION_ID=`cat /etc/*-release | grep 'VERSION_ID' | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
|
||||||
|
|
||||||
# 针对ubuntu24进行优化
|
# 针对ubuntu24,26进行优化
|
||||||
if [[ "$OSNAME" == "ubuntu" ]] && [[ "$VERSION_ID" =~ "24" ]]; then
|
if [[ "$OSNAME" == "ubuntu" ]] && [[ "$VERSION_ID" =~ ^(24|26)$ ]]; then
|
||||||
cur_dir=`pwd`
|
cur_dir=`pwd`
|
||||||
|
if [ -d /usr/lib/x86_64-linux-gnu ];then
|
||||||
cd /usr/lib/x86_64-linux-gnu
|
cd /usr/lib/x86_64-linux-gnu
|
||||||
if [ ! -f libaio.so.1 ];then
|
if [ ! -f libaio.so.1 ];then
|
||||||
ln -s libaio.so.1t64.0.2 libaio.so.1
|
ln -s libaio.so.1t64.0.2 libaio.so.1
|
||||||
@@ -80,7 +81,16 @@ if [[ "$OSNAME" == "ubuntu" ]] && [[ "$VERSION_ID" =~ "24" ]]; then
|
|||||||
if [ ! -f libncurses.so.6 ];then
|
if [ ! -f libncurses.so.6 ];then
|
||||||
ln -s libncursesw.so.6.4 libncurses.so.6
|
ln -s libncursesw.so.6.4 libncurses.so.6
|
||||||
fi
|
fi
|
||||||
cd $cur_dir
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d /usr/lib/aarch64-linux-gnu ];then
|
||||||
|
cd /usr/lib/aarch64-linux-gnu
|
||||||
|
if [ ! -f libaio.so.1 ];then
|
||||||
|
ln -s libaio.so.1t64.0.2 libaio.so.1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$OSNAME" == "debian" ]] && [[ "$VERSION_ID" =~ "13" ]]; then
|
if [[ "$OSNAME" == "debian" ]] && [[ "$VERSION_ID" =~ "13" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user