Skip to content

Move crontab to recommended location#7

Open
jonathan-s wants to merge 1 commit intodokku-community:masterfrom
jonathan-s:master
Open

Move crontab to recommended location#7
jonathan-s wants to merge 1 commit intodokku-community:masterfrom
jonathan-s:master

Conversation

@jonathan-s
Copy link
Copy Markdown

Fixes the following issue #6. This PR will move a file crontab to the recommended location for crontab. The user of the plugin will need to add two extra permissions in sudoers to let the dokku user overwrite the crontab correctly the next time their application is deployed.

README.md Outdated
Add the following line. It will allow the dokku user to overwrite the old crontab as well as restart the cron service after it has been overwritten.

```bash
dokku ALL=(ALL) NOPASSWD: /bin/cp, /usr/sbin/service cron restart
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be added to it's own sudoers file during the install phase of the plugin.

@jonathan-s jonathan-s force-pushed the master branch 3 times, most recently from 86ce198 to 02fc60d Compare May 10, 2019 08:07


echo "%dokku ALL=(ALL) NOPASSWD: /bin/cp, /usr/sbin/service cron restart" > /etc/sudoers.d/dokku-supply-config
chmod 0440 "/etc/sudoers.d/dokku-supply-config"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josegonzalez I've had a look at the nginx and postgres plugin and it seems like this is what's needed. However, when I try to install the plugin the dokku-supply-config is not created. I'm not sure exactly what I'm missing here.

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

Successfully merging this pull request may close these issues.

2 participants