ILIAS-7-Install-Tutorial for Ubuntu 20.04

Change default.pdf by script nightly

  • Upload a default.pdf to your ILIAS system and change the rights so that it is accassible from the www (give ananymous read access)
  • Log in to your BBB-Server
  • cd /root
  • nano defaultpdf.sh
  • Paste this in:
1
2
3
4
5
6
7
#!/bin/bash

pdfsource="https://kivinet.de/ilias/goto.php?target=file_193729_download&client_id=iliasschoolmaster"
pdfdestinantion="/var/www/bigbluebutton-default"
cd ${pdfdestinantion}
rm ${pdfdestinantion}/default.pdf
curl ${pdfsource} -o default.pdf
  • Change line 3 as you want
  • exit
  • chmod +x defaultpdf.sh
  • nano /etc/crontab
  • Put this line in:
1
1 3     * * *   root    /root/defaultpdf.sh > /dev/null 2>&1
  • This should run the script at 3:01 am.
  • If you run multiple BBB instances and you want to maintain only one script, you can run it like this on the remote servers: wget -qO- https://kivinet.de/defaultpdf.sh | bash -s
1
19 3    * * *   root    wget -qO- https://kivinet.de/defaultpdf.sh | bash -s


No comment has been posted yet.