From 2b5fb8c2610c59462857bed8a0132f98d32e75f6 Mon Sep 17 00:00:00 2001 From: Vidya Date: Mon, 14 Nov 2016 18:36:58 +0530 Subject: [PATCH] Removed additional office plugins --- moodle-cluster-ubuntu/install_frontend.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/moodle-cluster-ubuntu/install_frontend.sh b/moodle-cluster-ubuntu/install_frontend.sh index 8b40874fb59e..e01d51acb5f8 100644 --- a/moodle-cluster-ubuntu/install_frontend.sh +++ b/moodle-cluster-ubuntu/install_frontend.sh @@ -45,6 +45,19 @@ mv moodle-$moodleVersion moodle if [ "$installOfficePlugins" = "True" ]; then curl -k --max-redirs 10 https://github.com/Microsoft/o365-moodle/archive/$moodleVersion.zip -L -o o365.zip unzip o365.zip + + # The plugins below are not required for new installations + rm -rf o365-moodle-$moodleVersion/blocks/onenote + rm -rf o365-moodle-$moodleVersion/local/m* + rm -rf o365-moodle-$moodleVersion/local/o365docs + rm -rf o365-moodle-$moodleVersion/local/office365 + rm -rf o365-moodle-$moodleVersion/local/onenote + rm -rf o365-moodle-$moodleVersion/mod/assign + rm -rf o365-moodle-$moodleVersion/user/profile/ + rm -rf o365-moodle-$moodleVersion/repository/onenote + + #Copy office plugins to moodle and remove office unzipped folder + cp -r o365-moodle-$moodleVersion/* moodle rm -rf o365-moodle-$moodleVersion fi