Don't install PHP MSSQL driver when not needed (incomplete)

This commit is contained in:
Hosung Song 2018-05-17 14:45:32 -07:00
Родитель 79e7e96b48
Коммит 997e1b327e
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -199,7 +199,7 @@
if [ $dbServerType = "mysql" ]; then if [ $dbServerType = "mysql" ]; then
sudo apt-get install -y --force-yes php-mysql sudo apt-get install -y --force-yes php-mysql
elif [ $dbServerType = "mssql" ]; then elif [ $dbServerType = "mssql" ]; then
install_php_sql_driver install_php_mssql_driver
else else
sudo apt-get install -y --force-yes php-pgsql sudo apt-get install -y --force-yes php-pgsql
fi fi

Просмотреть файл

@ -85,7 +85,9 @@ check_fileServerType_param $fileServerType
# Moodle requirements # Moodle requirements
sudo apt-get install -y graphviz aspell php-soap php-json php-redis php-bcmath php-gd php-pgsql php-mysql php-xmlrpc php-intl php-xml php-bz2 sudo apt-get install -y graphviz aspell php-soap php-json php-redis php-bcmath php-gd php-pgsql php-mysql php-xmlrpc php-intl php-xml php-bz2
install_php_sql_driver if [ "$dbServerType" = "mssql" ]; then
install_php_mssql_driver
fi
# PHP Version # PHP Version
PhpVer=$(get_php_version) PhpVer=$(get_php_version)