Skip to content

[TECH-580] Add custom restore module check#61

Open
cPAusaf wants to merge 1 commit into
CpanelInc:masterfrom
cPAusaf:TECH-580_custom_restore_module
Open

[TECH-580] Add custom restore module check#61
cPAusaf wants to merge 1 commit into
CpanelInc:masterfrom
cPAusaf:TECH-580_custom_restore_module

Conversation

@cPAusaf

@cPAusaf cPAusaf commented Aug 22, 2018

Copy link
Copy Markdown

Believe I did everything correctly (runs on my box as well and outputs correctly). If I messed anything up, please let me know.

@cPanelChrisD cPanelChrisD left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This passed perlcritic and perltidy and it worked as intended when I tested it. Only had some questions about the wording and INFO vs. WARN noted in another comment. Could you also please move this pull request to git.cpanel.net?

Comment thread ssp
return unless $found;

print_info('Custom Restore Modules: ');
print_normal("found in ${restoremodule_dir} -- can cause issues with restoration process if major version of cPanel was recently changed!");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wording of this feels like it should be a WARN rather than INFO, though in general the check fits in with the others around it. Maybe instead of the exclamatory text you could put a link to a document for more information, similar to the others?

@cPanelChrisD

Copy link
Copy Markdown
Collaborator

@cPAusaf @davelcpanelnet This pull can be closed since it was done in 45dcf59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants