Skip to content
1 change: 1 addition & 0 deletions nested/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"imageReference": "[parameters('moodleCommon').osType]",
"osDisk": {
"createOption": "FromImage",
"diskSizeGB": 256,
"managedDisk": {
"storageAccountType": "[parameters('moodleCommon').osDiskStorageType]"
},
Expand Down
1 change: 1 addition & 0 deletions nested/webvmss.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"osDisk": {
"caching": "ReadOnly",
"createOption": "FromImage",
"diskSizeGB": 256,
"managedDisk": {
"storageAccountType": "[parameters('moodleCommon').osDiskStorageType]"
}
Expand Down
9 changes: 9 additions & 0 deletions scripts/install_moodle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,15 @@ EOF
fi

echo -e "\n\rDone! Installation completed!\n\r"

# use /tmp/localcachedir/ for localcache and /var/www/html/moodle/ for core_component.php
dir="/var/www/html/moodle"
if [[ ! -d $dir ]]; then
mkdir -p $dir
chown -R www-data:www-data $dir
fi
sed -i "22 a \$CFG->localcachedir = '/tmp/localcachedir';" /moodle/html/moodle/config.php
sed -i "22 a \$CFG->alternative_component_cache = '/var/www/html/moodle/core_component.php';" /moodle/html/moodle/config.php

if [ "$redisAuth" != "None" ]; then
create_redis_configuration_in_moodledata_muc_config_php
Expand Down