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

Copy instead of moving when migrating predefined report formats #1286

Merged
merged 4 commits into from
Sep 2, 2020

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Sep 1, 2020

What:

When migrating predefined report formats copy the old directory instead of moving it.

Why:

When a report format is migrated from the old predefined report format location (share/gvm/gvmd) gvmd may not have write access to the existing directory.

How:

1 Make sure old dir exists
2 Make the old parent dir read-only. eg /home/matt/alts/gvm208/share/gvm/gvmd/report_formats/
3 Remove owner from the report format (using SQL).
4 Set Feed Import Owner with --modify-setting (the will trigger the migrate).

Checklist:

@timopollmeier timopollmeier merged commit c04cad1 into gvmd-20.08 Sep 2, 2020
@mattmundell mattmundell deleted the copy-rf-dirs-on-migrate branch October 3, 2020 09:20
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