View | Details | Raw Unified | Return to bug 25538
Collapse All | Expand All

(-)a/debian/scripts/koha-shell (-3 / +2 lines)
Lines 45-52 my $perl5lib = read_perl5lib( $instance ); Link Here
45
my @su_args;
45
my @su_args;
46
push @su_args, '/usr/bin/sudo';
46
push @su_args, '/usr/bin/sudo';
47
push @su_args, '--preserve-env' if $opts{'preserve-environment'};
47
push @su_args, '--preserve-env' if $opts{'preserve-environment'};
48
push @su_args, '--login' if $opts{login};
48
push @su_args, '--login' if $opts{login} || !$opts{command};
49
push @su_args, "-u", "$instance-koha", "-i";
49
push @su_args, "-u", "$instance-koha";
50
push @su_args,
50
push @su_args,
51
    "env "
51
    "env "
52
  . "KOHA_CONF=/etc/koha/sites/$instance/koha-conf.xml "
52
  . "KOHA_CONF=/etc/koha/sites/$instance/koha-conf.xml "
53
- 

Return to bug 25538