From 35ce799e932695bf55b80f2d3d612ef09205f264 Mon Sep 17 00:00:00 2001 From: mohammedzee1000 Date: Thu, 6 Apr 2017 18:59:20 +0530 Subject: [PATCH] Removed freetds and updated to fail if oracle backend is requested. This is due to licensing issues with oracle client. --- moodle/centos7/run.sh | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/moodle/centos7/run.sh b/moodle/centos7/run.sh index d810e3a1..7871450d 100755 --- a/moodle/centos7/run.sh +++ b/moodle/centos7/run.sh @@ -25,32 +25,13 @@ if [ -z ${MOODLE_HOST_NOPORT} ]; then fi fi -FREETDS_FILE="/etc/freetds.conf"; -FREETDS_VERSION="4.2"; - -# Helpers - -mssql_freetds() { - -cat < ${FREETDS_FILE} -[global] - tds version = ${FREETDS_VERSION} - text size = 20971520 - host = ${DB_HOST} - port = 1433 - client charset = UTF-8 -EOT - -} - # Main Begins if [ $1 == "moodle" ]; then - if [ ${DB_TYPE} == "mssql" ]; then - echo "The packages required for this require PHP 7, hence MSSQL is not currently supported"; + if [ ${DB_TYPE} == "oci" ]; then + echo "Oracle database is not currently supported due to licensing issues with their client"; exit 1 - # mssql_freetds; fi sed -e "s/pgsql/${DB_TYPE}/ s/username/${DB_USER}/