Skip to content

Commit

Permalink
Add comment and remove $user since it was redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Sep 4, 2020
1 parent b996061 commit bb8d83f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/task/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
'stage' => get('stage'),
];
});

// If you're deploying as root you have the option to edit other users' crontabs
// So this parameters the user to the http_user if you're deploying as root else we don't set it
set('cron_user', static function (): string {
$user = run('whoami');
if ('root' !== $user) {
if ('root' !== run('whoami')) {
return '';
}

Expand Down

0 comments on commit bb8d83f

Please sign in to comment.