Skip to content

Commit 1356b17

Browse files
Removed freetds and updated to fail if oracle backend is requested.
This is due to licensing issues with oracle client.
1 parent 24ab7aa commit 1356b17

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

moodle/centos7/run.sh

+2-21
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,13 @@ if [ -z ${MOODLE_HOST_NOPORT} ]; then
2525
fi
2626
fi
2727

28-
FREETDS_FILE="/etc/freetds.conf";
29-
FREETDS_VERSION="4.2";
30-
31-
# Helpers
32-
33-
mssql_freetds() {
34-
35-
cat <<EOT > ${FREETDS_FILE}
36-
[global]
37-
tds version = ${FREETDS_VERSION}
38-
text size = 20971520
39-
host = ${DB_HOST}
40-
port = 1433
41-
client charset = UTF-8
42-
EOT
43-
44-
}
45-
4628
# Main Begins
4729

4830
if [ $1 == "moodle" ]; then
4931

50-
if [ ${DB_TYPE} == "mssql" ]; then
51-
echo "The packages required for this require PHP 7, hence MSSQL is not currently supported";
32+
if [ ${DB_TYPE} == "oci" ]; then
33+
echo "Oracle database is not currently supported due to licensing issues with their client";
5234
exit 1
53-
# mssql_freetds;
5435
fi
5536
sed -e "s/pgsql/${DB_TYPE}/
5637
s/username/${DB_USER}/

0 commit comments

Comments
 (0)