Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crontab #6

Open
jonathan-s opened this issue May 6, 2019 · 2 comments
Open

Crontab #6

jonathan-s opened this issue May 6, 2019 · 2 comments

Comments

@jonathan-s
Copy link

jonathan-s commented May 6, 2019

Dokku crontab are generally placed in /etc/cron.d/ it would be nice if this plugin could support the moving files to other places in general.

The documentation says

Place your cronfiles in a pattern such as /etc/cron.d/APP.

http://dokku.viewdocs.io/dokku/deployment/one-off-processes/#general-cron-recommendations

So how about if there is a crontab file in the .dokku folder it's moved following that pattern?

@jonathan-s
Copy link
Author

jonathan-s commented May 6, 2019

I've got this working on a repo that I forked. The only caveat is that when you install the plugin you also have to change the read/write permissions on /etc/cron.d for it to work. Perhaps you know of a better way to achieve it? Ping @josegonzalez

@josegonzalez
Copy link
Member

No need to ping me, I'm in this org.

I don't think there is a good way to do that. You'd probably want to add a sudoers entry so you can sudo cp files into place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants