[Koha-bugs] [Bug 22143] Fix permission and owner of configuration backups

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 16 18:40:07 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22143

--- Comment #2 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 84075
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=84075&action=edit
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 at 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.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list