-
Notifications
You must be signed in to change notification settings - Fork 21
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
Automatically convert v1 config files #76
Comments
QA PASS Tested with 1.1.0 binary and v2.0.1rc4 binary SUMMARY: DETAIL/FINDINGS: For the flowing scenarios ensure upgrade works as expected and that malware-scan and vuln-scan work as expected:
NOTES: Here is an example of INI upgrade / migrate behavior when upgrade to 2.0.1rc4. The following assumes you are keeping your settings:
Becomes:
Once upgraded and configure by answering "y" for yes to prompt to update configuration file and manually picking '8' for worker processes again (default is '1' currently). Therefore we can see that malware-scan specific settings get moved from [SCAN] section into the new [MALWARE_SCAN] section which replaces [SCAN]. Whereas the license key and cache directory are general settings and thus in a new [DEFAULT] section. |
This was initially part of #72, but also depends on #75, so this is being broken out as a standalone issue.
Per @ewodrich in #72:
Converting current users to new configuration
For this release we also need to convert existing wordfence-cli.ini files for current users to the new format that includes a [DEFAULT] global option, [MALWARE_SCAN] (formerly [SCAN]), and [VULN_SCAN] options.
After the user installs/upgrades to version 2.0.1, they will likely next run a wordfence cli command. When any command is input, the user should be prompted to update their configuration. The expected flow is:
For example:
Update the wordfence-cli.ini file with the new formats that includes:
The text was updated successfully, but these errors were encountered: