[Koha-bugs] [Bug 25752] Current directory not kept when using koha-shell

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 9 14:12:59 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25752

--- Comment #15 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Jonathan Druart from comment #13)
> root at 615331e1369d:koha(master)$ cd /tmp
> root at 615331e1369d:tmp$ koha-shell -c pwd kohadev
> /tmp
> root at 615331e1369d:tmp$ koha-shell kohadev
> kohadev-koha at 615331e1369d:/tmp$ pwd
> /tmp

Sorry, I misread the patch. The problem is with the --login option:

# cwd is /home/koha/env/master/src
# user test-koha created by hand so $HOME is different than with package
install
% debian/scripts/koha-shell --login -c pwd test
/home/test-koha
% debian/scripts/koha-shell --login test       
% pwd
/home/koha/env/master/src

Compare with sudo:

# cwd is /home/koha/env/master/src
% sudo --login -u test-koha pwd
/home/test-koha
% sudo --login -u test-koha
% pwd
/home/test-koha

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list