зеркало из https://github.com/Azure/Moodle.git
fix more typos and indentation
This commit is contained in:
Родитель
3186915fa0
Коммит
5be7755a79
|
@ -826,18 +826,18 @@ EOF
|
|||
# We proxy ssl, so moodle needs to know this
|
||||
sed -i "23 a \$CFG->sslproxy = 'true';" /moodle/html/moodle/config.php
|
||||
|
||||
if [ "$searchType" == "elastic" ]; then
|
||||
if [ "$searchType" = "elastic" ]; then
|
||||
# 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->searchengine = 'elastic';" /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
|
||||
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->enableglobalsearch = 'true';" /moodle/html/moodle/config.php
|
||||
# create index
|
||||
sudo -u www-data php /moodle/html/moodle/search/cli/indexer.php --force --reindex
|
||||
sudo -u www-data php /moodle/html/moodle/search/cli/indexer.php --force --reindex
|
||||
fi
|
||||
|
||||
if [ "$installObjectFsSwitch" = "True" ]; then
|
||||
|
|
Загрузка…
Ссылка в новой задаче