Update lib.sh

pull/119/head
midoks 3 years ago
parent 206b5d6515
commit c48c7d7020
  1. 12
      scripts/lib.sh

@ -222,8 +222,7 @@ echo -e "Install_Curl" >> ${libPath}/lib.pl
}
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
if grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
@ -233,6 +232,8 @@ if [ ${_os} == "Darwin" ]; then
OSNAME='macos'
elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse'
elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then
OSNAME='arch'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then
@ -268,7 +269,10 @@ if [ "$OSNAME" == "macos" ]; then
brew install freetype
brew install openssl
brew install libzip
elif [ "$OSNAME" == "opensuse" ];then
echo "opensuse lib"
elif [ "$OSNAME" == "arch" ];then
echo "arch lib"
elif [ "$OSNAME" == "ubuntu" ] || [ "$OSNAME" == "debian" ]; then
apt install -y devscripts
@ -328,8 +332,6 @@ elif [ "$OSNAME" == "ubuntu" ] || [ "$OSNAME" == "debian" ]; then
#apt install -y libmysqlclient-dev
apt install -y libmariadb-dev-compat
#apt install -y libmariadbclient-dev
elif [ "$OSNAME" == "opensuse" ];then
echo "opensuse lib"
else
yum install -y openldap openldap-devel libtirpc libtirpc-devel rpcgen

Loading…
Cancel
Save