Skip to content

Commit

Permalink
Set 0777 rights for cron info file
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevad authored Feb 1, 2017
1 parent 33a7c76 commit b935206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CronProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ private function checkProcessAvailability()
/**
* Serialize current instance attributes to the file.
* Allowed only in CLI mode.
* @return void
*/
private function saveInfoFile()
{
Expand All @@ -286,6 +287,7 @@ private function saveInfoFile()
unset($data['_service'], $data['_wrapperCommand']);

file_put_contents($this->getInfoFileName(), json_encode($data), LOCK_EX);
chmod($this->getInfoFileName(), 0777);
}

/**
Expand All @@ -307,4 +309,4 @@ private function checkIsCLI()
throw new RuntimeException('You cannot run cron process in non CLI mode');
}
}
}
}

0 comments on commit b935206

Please sign in to comment.