diff --git a/.editorconfig b/.editorconfig old mode 100755 new mode 100644 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md old mode 100755 new mode 100644 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml old mode 100755 new mode 100644 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml old mode 100755 new mode 100644 diff --git a/.github/ISSUE_TEMPLATE/issue.bug.yml b/.github/ISSUE_TEMPLATE/issue.bug.yml old mode 100755 new mode 100644 diff --git a/.github/ISSUE_TEMPLATE/issue.feature.yml b/.github/ISSUE_TEMPLATE/issue.feature.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/call_issue_pr_tracker.yml b/.github/workflows/call_issue_pr_tracker.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/call_issues_cron.yml b/.github/workflows/call_issues_cron.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/external_trigger.yml b/.github/workflows/external_trigger.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/external_trigger_scheduler.yml b/.github/workflows/external_trigger_scheduler.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/package_trigger_scheduler.yml b/.github/workflows/package_trigger_scheduler.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/permissions.yml b/.github/workflows/permissions.yml old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md index 364cca1..ef107e9 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ The architectures supported by this image are: Requires a user and database in either mysql or mariadb. +crontab for scheduled tasks should be added to /config/crontabs/abc and the container restarted to enable. + To set PHP options like max upload size please edit /config/php/projectsend.ini To use translations, follow the instructions [here](https://www.projectsend.org/how-to-use-translation-files/). The necessary paths are symlinked under `/config/translations` (note that the "templates" paths don't need `lang` subdirectories). diff --git a/readme-vars.yml b/readme-vars.yml index 4a1e767..ac79a80 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -27,6 +27,8 @@ app_setup_block_enabled: true app_setup_block: | Requires a user and database in either mysql or mariadb. + crontab for scheduled tasks should be added to /config/crontabs/abc and the container restarted to enable. + To set PHP options like max upload size please edit /config/php/projectsend.ini To use translations, follow the instructions [here](https://www.projectsend.org/how-to-use-translation-files/). The necessary paths are symlinked under `/config/translations` (note that the "templates" paths don't need `lang` subdirectories). @@ -86,6 +88,7 @@ init_diagram: | "projectsend:latest" <- Base Images # changelog changelogs: + - {date: "06.06.25:", desc: "Add crontab handler for scheduled tasks."} - {date: "21.12.24:", desc: "Rebase to Alpine 3.21, move php .ini file to /config/php."} - {date: "06.06.24:", desc: "Rebase to Alpine 3.20."} - {date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."} diff --git a/root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run b/root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run index e1c0dfe..6214f02 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run @@ -109,6 +109,12 @@ done shopt -u globstar dotglob +# handle crontab if configured +mkdir -p /config/crontabs +touch /config/crontabs/abc +lsiown abc:abc /config/crontabs/abc +crontab -u abc /config/crontabs/abc + # permissions lsiown -R abc:abc \ /config \ @@ -117,3 +123,5 @@ lsiown -R abc:abc \ lsiown abc:abc \ /data/projectsend \ /app/www/public/includes + +chmod 755 /app/www/public/emails