зеркало из https://github.com/Azure/Moodle.git
fix more typos and indentation
This commit is contained in:
Родитель
3186915fa0
Коммит
5be7755a79
|
@ -826,12 +826,12 @@ EOF
|
||||||
# We proxy ssl, so moodle needs to know this
|
# We proxy ssl, so moodle needs to know this
|
||||||
sed -i "23 a \$CFG->sslproxy = 'true';" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->sslproxy = 'true';" /moodle/html/moodle/config.php
|
||||||
|
|
||||||
if [ "$searchType" == "elastic" ]; then
|
if [ "$searchType" = "elastic" ]; then
|
||||||
# Set up elasticsearch plugin
|
# Set up elasticsearch plugin
|
||||||
sed -i "23 a \$CFG->forced_plugin_settings = ['search_elastic' => ['hostname' => 'http://$elasticVm1IP']];" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->forced_plugin_settings = ['search_elastic' => ['hostname' => 'http://$elasticVm1IP']];" /moodle/html/moodle/config.php
|
||||||
sed -i "23 a \$CFG->searchengine = 'elastic';" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->searchengine = 'elastic';" /moodle/html/moodle/config.php
|
||||||
sed -i "23 a \$CFG->enableglobalsearch = 'true';" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->enableglobalsearch = 'true';" /moodle/html/moodle/config.php
|
||||||
elif [ "$searchType" == "azure" ]; then
|
elif [ "$searchType" = "azure" ]; then
|
||||||
# Set up Azure Search service plugin
|
# Set up Azure Search service plugin
|
||||||
sed -i "23 a \$CFG->forced_plugin_settings = ['search_azure' => ['searchurl' => 'https://$azureSearchNameHost', 'apikey' => '$azureSearchKey']];" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->forced_plugin_settings = ['search_azure' => ['searchurl' => 'https://$azureSearchNameHost', 'apikey' => '$azureSearchKey']];" /moodle/html/moodle/config.php
|
||||||
sed -i "23 a \$CFG->searchengine = 'azure';" /moodle/html/moodle/config.php
|
sed -i "23 a \$CFG->searchengine = 'azure';" /moodle/html/moodle/config.php
|
||||||
|
|
Загрузка…
Ссылка в новой задаче