fix more typos and indentation

This commit is contained in:
Zoe Lu 2018-04-17 10:47:03 +10:00
Родитель 3186915fa0
Коммит 5be7755a79
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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