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