Bugzilla – Attachment 105644 Details for
Bug 25693
Correct permissions must be set on logdir after an upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25693: Set correct permissions on logdir after an upgrade
Bug-25693-Set-correct-permissions-on-logdir-after-.patch (text/plain), 1.44 KB, created by
Martin Renvoize (ashimema)
on 2020-06-08 13:44:19 UTC
(
hide
)
Description:
Bug 25693: Set correct permissions on logdir after an upgrade
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-06-08 13:44:19 UTC
Size:
1.44 KB
patch
obsolete
>From 51ca25bc5b0f6cdc73153b3828353fbf3a78f103 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 8 Jun 2020 14:14:22 +0200 >Subject: [PATCH] Bug 25693: Set correct permissions on logdir after an upgrade > >Since bug 25172 we are failing loudly if the permissions are not correct >and that the logger cannot init successfully. > >We must set the correct permission on upgrading. >koha-create deals with new installs > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > debian/koha-common.postinst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst >index af595fa4ce..fcdeaa9f73 100644 >--- a/debian/koha-common.postinst >+++ b/debian/koha-common.postinst >@@ -189,6 +189,16 @@ EOF > fi > done > >+for site in $(koha-list); do >+ kohaconfig="/etc/koha/sites/$site/koha-conf.xml" >+ logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )" >+ if [ "$logdir" != "" ] && [ "$logdir" != "0" ]; then >+ chown -R $site-koha:$site-koha $logdir >+ else >+ chown -R $site-koha:$site-koha /var/log/koha/$site >+ fi >+done >+ > # Bug 14106 - fix the modulePath of existing koha instances so that it'll > # continue to work. This will only patch the files if the exact original string > # that we're fixing them from is there, so we just run it every time. Maybe >-- >2.20.1
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 25693
:
105640
|
105642
| 105644