mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 00:32:25 +01:00
* Add parameter crontab:use_sudo to allow running crontab using sudo. This makes it possible to overwrite the bin/crontab variable to edit crontab for other users. e.g. set("crontab:use_sudo", true); set("bin/crontab", function () { return which('crontab') . " -u www-data"; }); * Add documentation and use cases for crontab:use_sudo * Regenerate documentation with docgen
1.0 KiB
1.0 KiB
Crontab Recipe
require 'contrib/crontab.php';
Configuration
bin/crontab
Get path to bin
return which('crontab');
crontab:identifier
Set the identifier used in the crontab, application name by default
return get('application', 'application');
crontab:use_sudo
Use sudo to run crontab. When running crontab with sudo, you can use the -u
parameter to change a crontab for a different user.
false
Tasks
crontab:sync
Sync crontab jobs.