From 997e1b327e8a2e5d7ec6c914ac5dc41f16d8e8f9 Mon Sep 17 00:00:00 2001 From: Hosung Song Date: Thu, 17 May 2018 14:45:32 -0700 Subject: [PATCH] Don't install PHP MSSQL driver when not needed (incomplete) --- scripts/install_moodle.sh | 2 +- scripts/setup_webserver.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install_moodle.sh b/scripts/install_moodle.sh index 2ea1103..b2087ed 100644 --- a/scripts/install_moodle.sh +++ b/scripts/install_moodle.sh @@ -199,7 +199,7 @@ if [ $dbServerType = "mysql" ]; then sudo apt-get install -y --force-yes php-mysql elif [ $dbServerType = "mssql" ]; then - install_php_sql_driver + install_php_mssql_driver else sudo apt-get install -y --force-yes php-pgsql fi diff --git a/scripts/setup_webserver.sh b/scripts/setup_webserver.sh index 7e6e908..f9fc07d 100644 --- a/scripts/setup_webserver.sh +++ b/scripts/setup_webserver.sh @@ -85,7 +85,9 @@ check_fileServerType_param $fileServerType # 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 - install_php_sql_driver + if [ "$dbServerType" = "mssql" ]; then + install_php_mssql_driver + fi # PHP Version PhpVer=$(get_php_version)