Summary: | Fix permission and owner of configuration backups | ||
---|---|---|---|
Product: | Koha | Reporter: | Magnus Enger <magnus> |
Component: | Packaging | Assignee: | Dobrica Pavlinusic <dpavlin> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | katrin.fischer, mirko |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8437 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14564 |
||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Attachments: |
Patch from Bug 8437
Bug 22143 - Fix permission and owner of configuration backups |
Description
Magnus Enger
2019-01-16 17:01:23 UTC
Created attachment 84074 [details] [review] Patch from Bug 8437 Created attachment 84075 [details] [review] Bug 22143 - Fix permission and owner of configuration backups This allows backups created using Debian package to show up automatically in web interface and makes permissions of backup files consistent. Signed-off-by: Magnus Enger <magnus@libriotech.no> Original patch by Dobrica Pavlinusic. Moved from Bug 8437 by me. Tested thusly: - Look at backup files in /var/spool/koha/<instance>/ - Notice that permissions for .tar.gz files are -rw------- - Notice ownership of .tar.gz files are root:root - Apply this patch - Make sure the changes in the patch are applied to the script you run when you run "sudo koha-dump". This might include copying debian/scripts/koha-dump to /usr/sbin/koha-dump, if you are on a gitified setup. - Run the modified koha-dump - Notice that both backup files dated today are now -rw-r----- and ownership is root:<instance>-koha For extra testing credit: Set <backup_conf_via_tools>1</backup_conf_via_tools> in koha-conf.xml and verify that no files are listed under Tools > Export > Export configuration initially. After patching and running koha-dump the .tar.gz with the current date should show up. Hi Magnus, this is a duplicate of bug 14564. I won't duplicate-link to it so I don't close your bug, but please take a look and see if you agree with the discussion. :) *** This bug has been marked as a duplicate of bug 14564 *** (In reply to Mirko Tietgen from comment #3) > Hi Magnus, this is a duplicate of bug 14564. I won't duplicate-link to it so > I don't close your bug, but please take a look and see if you agree with the > discussion. :) Thanks for pointing it out, bad searching on my part. |