fix(nextcloud): added default template document for moodle activities
parent
c0818cdf8e
commit
dd14f8f6a4
8
dd-ctl
8
dd-ctl
|
@ -21,7 +21,7 @@ if [ -z "$OPERATION" ]; then
|
|||
echo " Branding (custom/img, custom/menu): ./dd-ctl branding"
|
||||
echo " Restart api if changes applied (development): ./dd-ctl restart-api"
|
||||
echo " Generate adminer.yml to access DBs: ./dd-ctl adminer"
|
||||
echo " Restart api if changes applied (development): ./dd-ctl restart-api"
|
||||
echo " Rescan nextcloud data folders: ./dd-ctl nextcloud-scan"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -198,6 +198,12 @@ setup_nextcloud(){
|
|||
# Import fix from Nextcloud 22 of pdf viewer
|
||||
# https://github.com/nextcloud/files_pdfviewer/issues/381#issuecomment-845806364
|
||||
docker exec isard-apps-nextcloud-app sed -i 's/encodeURIComponent(i\[a\])/i[a]/' /var/www/html/apps/files_pdfviewer/js/files_pdfviewer-main.js
|
||||
|
||||
# Add default file for moodle activities
|
||||
if [ ! -f $DATA_FOLDER/nextcloud/admin/files/template.docx ]; then
|
||||
cp isard-apps/docker/nextcloud/template.docx $DATA_FOLDER/nextcloud/admin/files/
|
||||
nextcloud_scan
|
||||
fi
|
||||
}
|
||||
|
||||
nextcloud_scan(){
|
||||
|
|
Loading…
Reference in New Issue