tiredofit / docker-osticket

Dockerized help desk application
MIT License
71 stars 56 forks source link

Fix osticket cronjob #4

Closed leMaik closed 3 years ago

leMaik commented 3 years ago

I spent a while debugging why our cronjob wouldn't run. Turns out it was the -d option.

$ php --help
[…]
-d foo[=bar]     Define INI entry foo with value 'bar'

I don't know what -d was supposed to do here but it seems like it causes the file path to be defined as an INI entry and no file to be executed. Thus php uses the script from stdin, which is nothing, and does nothing.

This fixes it and now we get tickets created even when we're not active in osTicket (i.e. triggering the auto-cron).