Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:CrazyAwesomeCompany/autophing in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
ngroot committed Aug 29, 2014
2 parents c48f38b + 6f42b29 commit abc24fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@ The cron targets use some global project properties to know which cron files sho

## Dependencies ##
A Cron program installed on the server

### Sudocron ###
Some servers require the root user to manage files in the /etc/cron.d directories (depending on OS). When using the cron.sudo option some targets will execute the "sudo" command. To prevent the sudo command from asking password, you could edit the sudoers file (use `visudo` for this) to support certain commands;
```
deployusername ALL=NOPASSWD:/bin/rm /etc/cron.d/*
deployusername ALL=NOPASSWD:/bin/cp /deploy/folder/root/* /etc/cron.d/*
```

This allows the rm and cp commands into the right directories. Please note that this wildcard still allows for "../" to be filled in and potentially creating a security risk, but we're not covering that here.

0 comments on commit abc24fa

Please sign in to comment.