Bugzilla – Attachment 105688 Details for
Bug 25538
koha-shell should pass --login to sudo if no command
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25538: Default to --login|-i if no command passed
Bug-25538-Default-to---login-i-if-no-command-passe.patch (text/plain), 1.00 KB, created by
Martin Renvoize (ashimema)
on 2020-06-10 11:49:46 UTC
(
hide
)
Description:
Bug 25538: Default to --login|-i if no command passed
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-06-10 11:49:46 UTC
Size:
1.00 KB
patch
obsolete
>From 4af5043ba941a91a1ab6b637d99c553874603861 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 Jun 2020 13:21:42 +0200 >Subject: [PATCH] Bug 25538: Default to --login|-i if no command passed > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > debian/scripts/koha-shell | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/debian/scripts/koha-shell b/debian/scripts/koha-shell >index bb74c8073d..7e6770f590 100755 >--- a/debian/scripts/koha-shell >+++ b/debian/scripts/koha-shell >@@ -45,8 +45,8 @@ my $perl5lib = read_perl5lib( $instance ); > my @su_args; > push @su_args, '/usr/bin/sudo'; > push @su_args, '--preserve-env' if $opts{'preserve-environment'}; >-push @su_args, '--login' if $opts{login}; >-push @su_args, "-u", "$instance-koha", "-i"; >+push @su_args, '--login' if $opts{login} || !$opts{command}; >+push @su_args, "-u", "$instance-koha"; > push @su_args, > "env " > . "KOHA_CONF=/etc/koha/sites/$instance/koha-conf.xml " >-- >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 25538
:
105675
|
105676
|
105685
|
105686
|
105687
|
105688
|
105763
|
105764
|
105765