Bugzilla – Attachment 114454 Details for
Bug 14564
Incorrect permissions prevent web download of configuration backups
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14564: Set permissions on configuration backups
Bug-14564-Set-permissions-on-configuration-backups.patch (text/plain), 1.56 KB, created by
Josef Moravec
on 2020-12-16 17:01:29 UTC
(
hide
)
Description:
Bug 14564: Set permissions on configuration backups
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2020-12-16 17:01:29 UTC
Size:
1.56 KB
patch
obsolete
>From 464feb390b1b2b4a10e5d6de216707d366a92ef9 Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Mon, 16 Nov 2020 22:24:22 +0000 >Subject: [PATCH] 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> >--- > debian/scripts/koha-dump | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump >index 707a8dfe05..e654a00a56 100755 >--- a/debian/scripts/koha-dump >+++ b/debian/scripts/koha-dump >@@ -95,6 +95,8 @@ dump_instance() > "etc/apache2/sites-enabled/$instancefile" \ > "var/lib/koha/$name" \ > "var/log/koha/$name" >+ chown "root:$name-koha" "$metadump" >+ chmod g+r "$metadump" > > [ "$quiet" = "no" ] && echo "Done." > } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14564
:
41092
|
113685
|
114454
|
114519