]> git.koha-community.org Git - koha.git/commit
Bug 14564: Set permissions on configuration backups
authorMirko Tietgen <mirko@abunchofthings.net>
Sun, 19 Jul 2015 15:16:12 +0000 (17:16 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 30 Dec 2020 14:10:26 +0000 (15:10 +0100)
commitf3316755927c6faa1511ebf346ee7ae4d24f4ff2
treea2312630cca3cbbcab0ade5cc67b4fe968a09fb8
parentb3a3d9c26125fdbfe92478fc0677f4305cb7591c
Bug 14564: Set permissions on configuration backups

This patch sets the group and group read permissions on
configuration backups, so that they can be downloaded
via the web staff interface.

Test plan:
0. Apply the patch
1. cp debian/scripts/koha-dump /usr/sbin/koha-dump
2. koha-run-backups --days 2 --output /var/spool/koha
3. Note *.tar.gz backups in /var/spool/koha/kohadev
now have root:kohadev-koha ownership and 640 permissions
4. vi /etc/koha/sites/kohadev/koha-conf.xml
5. Set backup_db_via_tools and backup_conf_via_tools to 1
6. echo 'flush_all' | nc -q 1 memcached 1121
7. koha-plack --restart kohadev
8. Go to http://localhost:8081/cgi-bin/koha/tools/export.pl
9. Click on "Export configuration"
10. Choose a file
11. Click Download configuration
12. Note that *.tar.gz file downloaded correctly

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6982680ae9e71d5d038e894842125860fcc986d6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e906a737f2f77d79b125ac292172d93191b672f3)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 227e59584373257f23f9f8dafc749a6ca88fa7ba)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
debian/scripts/koha-dump