Skip to content

Commit

Permalink
Removed freetds and updated to fail if oracle backend is requested.
Browse files Browse the repository at this point in the history
This is due to licensing issues with oracle client.
  • Loading branch information
mohammedzee1000 committed Apr 6, 2017
1 parent 5e36fce commit 35ce799
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions moodle/centos7/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOT > ${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}/
Expand Down

0 comments on commit 35ce799

Please sign in to comment.