diff --git a/dokuwiki/tasks/main.yml b/dokuwiki/tasks/main.yml index 47da4a30428f479f72a9940ef38acc8fa762b834..f2a81a77ab487a40fd4d51cb5166d3d261d365e4 100644 --- a/dokuwiki/tasks/main.yml +++ b/dokuwiki/tasks/main.yml @@ -213,6 +213,7 @@ - indexer - cleanup - blacklist + - update_extensions notify: - update blacklist tags: diff --git a/dokuwiki/templates/crontab.j2 b/dokuwiki/templates/crontab.j2 index 507ab16c451c49b5574b6005a4b141b065db414b..2a7d7c7f5731b228be6b9f49d1c125749b984b8d 100644 --- a/dokuwiki/templates/crontab.j2 +++ b/dokuwiki/templates/crontab.j2 @@ -3,3 +3,4 @@ 39 3 * * * root /usr/local/sbin/dokuwiki-cleanup.sh 39 4 * * * root /usr/local/sbin/dokuwiki-blacklist.sh 39 5 * * * root /usr/local/sbin/dokuwiki-indexer.sh +39 5 * * * root /usr/local/sbin/dokuwiki-update_extensions.sh diff --git a/dokuwiki/templates/update_extensions.sh.j2 b/dokuwiki/templates/update_extensions.sh.j2 new file mode 100644 index 0000000000000000000000000000000000000000..ee00c80373d10eaa4bb66ef8c43e0231f0c8bf0e --- /dev/null +++ b/dokuwiki/templates/update_extensions.sh.j2 @@ -0,0 +1,5 @@ +#!/bin/sh + +{% for dw in dokuwiki %} +sudo -u {{ dw.user }} php {{ dw.path }}/bin/plugin.php extension upgrade +{% endfor %}