anchor.diff:  
   && sed -i 's/allow_url_fopen/;allow_url_fopen/g' /etc/php5/apache2/php.ini \
   
  -#Insert new settings, as described here http://www.ilias.de/docu/ilias.php?ref_id=367&obj_id=6531&obj_type=PageObject&cmd=layout&cmdClass=illmpresentationgui&cmdNode=kd&baseClass=ilLMPresentationGUI
  +#Insert new settings, as described here http://www.ilias.de/docu/goto_docu_pg_6531_367.html
   && cat /data/resources/base/phpinisettings >> /etc/php5/apache2/php.ini
   
   #Then download ilias, unzip it and restart apache2
  -RUN wget https://github.com/ILIAS-eLearning/ILIAS/archive/v5.0.3.tar.gz -O /data/resources/base/ilias.tar.gz \
  +RUN wget https://github.com/ILIAS-eLearning/ILIAS/archive/v5.1.3.tar.gz -O /data/resources/base/ilias.tar.gz \
   && tar xzvf /data/resources/base/ilias.tar.gz -C /var/www/html/ \
  -&& mv /var/www/html/ILIAS-5.0.3 /var/www/html/ilias \
  +&& mv /var/www/html/ILIAS-5.1.3 /var/www/html/ilias \
   && rm /data/resources/base/ilias.tar.gz
   
   #RUN unzip /data/resources/base/ILIAS-5.0.3.zip -d /var/www/html/ \
  
positive.code: 	htmldoc \
  	imagemagick \
  	mysql-client \
  	sendmail \
  	openjdk-7-jdk
  
  WORKDIR /data
  ADD resources /data/resources/base
  
negative.code: && chown www-data:www-data /data/resources/base/restoreilias.sh \
  && chmod 751 /data/resources/base/restoreilias.sh \
  
  #Problem in LetsEncrypt when changing the DocumentRoot...
  #&& sed -i 's|/var/www/html|/var/www/html/ilias|g' /etc/apache2/sites-enabled/000-default.conf \
  #...so we do a http redirect to /ilias
  && rm /var/www/html/index.html \ 
  && echo "<?php header('Location: ilias'); ?>" > /var/www/html/index.php 
  
  ENV apachestartmode="FOREGROUND" \
      createdump="no" \
      restorefromdump="no"
  
  EXPOSE 80 443	
  	
  ENTRYPOINT ["/data/resources/base/entrypoint.sh"]
  
  