Skip to content

Commit

Permalink
Merge pull request #25 from sdahlbac/elaborate-on-cron
Browse files Browse the repository at this point in the history
Speculatively add docs about how cron and acls should work together
  • Loading branch information
jamesread authored Nov 25, 2024
2 parents c6e80f7 + b1c5166 commit b84ce8f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion modules/ROOT/pages/action_execution/oncron.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ OliveTin can execute actions on a schedule, and uses a cron format for configura
actions:
- title: Say hello
shell: echo "Hello!"
execOnCron:
execOnCron:
- "@hourly"
- title: Say goodbye
Expand Down Expand Up @@ -39,3 +39,24 @@ actions:
----


==== Cron and ACLs

If you have enabled ACL, cron tasks are run as the user `cron`, which means that your ACL needs to allow the cron user to execute the action. This is one possibilty:

[source,yaml]
.`config.yaml`
----
accessControlLists:
- name: "cron"
matchUsernames:
- cron
permissions:
exec: true
actions:
- title: Say hello
shell: echo "Hello!"
execOnCron:
- "@hourly"
acls:
- "cron"
----

0 comments on commit b84ce8f

Please sign in to comment.