Commit 970ff851 authored by Seblu's avatar Seblu
Browse files

Update plugins/templates with container update

parent 235cf132
Loading
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -18,7 +18,14 @@ RUN apt-get update \
    | tar xz -C /var/www/html --strip-components=1 \
 && cp /var/www/html/.htaccess.dist /var/www/html/conf/apache.conf \
 && ln -s conf/apache.conf /var/www/html/.htaccess \
 && chown -R www-data:www-data /var/www/html
 && chown -R www-data:www-data /var/www/html \
 && mv /var/www/html/.htaccess.dist /var/www/html/conf/apache.conf \
 && mkdir /usr/share/dokuwiki \
 && mv /var/www/html/lib/plugins /var/www/html/lib/tpl /usr/share/dokuwiki \
 && true

COPY entrypoint.sh /usr/local/bin
ENTRYPOINT ["entrypoint.sh"]
CMD ["apache2-foreground"]
VOLUME ["/var/www/html/data/","/var/www/html/lib/plugins/","/var/www/html/conf/","/var/www/html/lib/tpl/"]
EXPOSE 80/tcp
 No newline at end of file

entrypoint.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/bin/sh

if ! test -e /usr/share/dokuwiki/updated; then
  for _i in tpl plugins; do
    cp -vura -t /var/www/html/lib/$_i /usr/share/dokuwiki/$_i
  done
  date > /usr/share/dokuwiki/updated
fi

exec docker-php-entrypoint "$@"