diff --git a/dd-ctl b/dd-ctl index 2c43cfa..ff6b6d2 100755 --- a/dd-ctl +++ b/dd-ctl @@ -697,7 +697,24 @@ upgrade_plugins_moodle(){ unzip -q tresipunt_theme_cbe.zip -d /tmp/moodle/theme/cbe/ mv /tmp/moodle/theme/cbe/moodle_theme_cbe-$PLUGIN_BRANCH/* /tmp/moodle/theme/cbe/ rm tresipunt_theme_cbe.zip + + # mod_tipnextcloud + M3IPTN="https://github.com/3iPunt/mod_tipnextcloud/archive/refs/heads/master.zip" + if [[ "${MOODLE_MOD_TN_OVERRIDE:-${M3IPTN}}" == *"develop"* ]]; then + PLUGIN_BRANCH=develop + else + PLUGIN_BRANCH=master + fi + + curl --location "${MOODLE_MOD_TN_OVERRIDE:-${M3IPTN}}" > tresipunt_mod_tn.zip + unzip -q tresipunt_mod_tn.zip -d /tmp/moodle/mod/tipnextcloud/ + mv /tmp/moodle/mod/tipnextcloud/mod_tipnextcloud-$PLUGIN_BRANCH/* /tmp/moodle/mod/tipnextcloud/ + rm tresipunt_mod_tn.zip + # local_mail + curl --location "${MOODLE_PLUGIN_MAIL_OVERRIDE:-https://moodle.org/plugins/download.php/26393/local_mail_moodle40_2017121407.zip}" > mail.zip + unzip -q mail.zip -d /tmp/moodle/local/ + rm mail.zip #mkdir -p /tmp/moodle/local/tresipuntimportgc #cp -R local_plugins/moodle/tresipuntimportgc/* /tmp/moodle/local/tresipuntimportgc/