https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39676 --- Comment #2 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212478 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212478&action=edit Bug 39676: Read /etc/default/koha-common in koha-reset-passwd Bug 39676: Read /etc/default/koha-common in koha-reset-passwd koha-reset-passwd runs $KOHA_HOME/$KOHA_BINDIR/admin/set_password.pl, but unlike koha-plack, koha-shell, koha-create and the other scripts it never reads /etc/default/koha-common, where KOHA_HOME and PERL5LIB are set. On a package install adjust_paths_git_install only sets KOHA_BINDIR, so the script ran /bin/admin/set_password.pl: env: '/bin/admin/set_password.pl': No such file or directory It works in KTD only because there the instance is a git install. Test plan: 1. In KTD, pretend to be a package install: sudo GIT_INSTALL=0 sh debian/scripts/koha-reset-passwd kohadev <a userid> env: '/bin/admin/set_password.pl': No such file or directory, exit 1. 2. Apply the patch, repeat 1: the userid and a new password are printed, exit 0, and the patron can log in with it. 3. sudo sh debian/scripts/koha-reset-passwd kohadev <a userid> (git install, as before) still works. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.