Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CrontabManager.php #12609

Merged
merged 2 commits into from
Dec 11, 2017
Merged

Update CrontabManager.php #12609

merged 2 commits into from
Dec 11, 2017

Conversation

WaPoNe
Copy link
Contributor

@WaPoNe WaPoNe commented Dec 9, 2017

If crontab is already populated, 'php bin/magento cron:install' adds '#~ MAGENTO START' and the rest of code directly to the last row of crontab without any spaces.

Description

Fixed Issues (if relevant)

  1. magento/magento2#<issue_number>: Issue title
  2. ...

Manual testing scenarios

  1. ...
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

If crontab is already populated, 'php bin/magento cron:install' adds '#~ MAGENTO START' and the rest of code directly to the last row of crontab without any spaces.
@sidolov sidolov self-assigned this Dec 11, 2017
@sidolov sidolov added this to the December 2017 milestone Dec 11, 2017
@sidolov
Copy link
Contributor

sidolov commented Dec 11, 2017

Replaced provided fix with more flexible logic for preventing empty lines in crontab config.
Also added dataset for unit test.

@ishakhsuvarov ishakhsuvarov added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Dec 11, 2017
@magento-team magento-team merged commit 3356c61 into magento:2.3-develop Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.3.x The issue has been fixed in 2.3 release line Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants