Summary: | koha-shell: a command to make using koha commands easier | ||
---|---|---|---|
Product: | Koha | Reporter: | Robin Sheat <robin> |
Component: | Packaging | Assignee: | Robin Sheat <robin> |
Status: | CLOSED FIXED | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | chris, kyle, m.de.rooy, magnus, martin.renvoize, mjr, mtj, robin |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 9784 | ||
Attachments: |
Bug 8878 - a command to provide a shell with the koha environment
Bug 8878 - a command to provide a shell with the koha environment Patch |
Description
Robin Sheat
2012-10-05 00:55:09 UTC
Created attachment 12691 [details] [review] Bug 8878 - a command to provide a shell with the koha environment This command behaves something like su(1), but provides you with a shell as the koha user, and with the environment pointing to the right places. No matter what switches I use, I always get the following "Error: An instance name must be supplied." Kyle, did you use this with the koha-common packages and instances created by them? Did you supply an instance name? (and as Katrin mentions, it's supposed to be used in the context of the packages.) I think you are correct in that I was testing it incorrectly. Switching back to 'Needs Signoff'. Created attachment 13506 [details] [review] Bug 8878 - a command to provide a shell with the koha environment This command behaves something like su(1), but provides you with a shell as the koha user, and with the environment pointing to the right places. Signed-off-by: Mason James <mtj@kohaaloha.com> (In reply to comment #7) > Created attachment 13506 [details] [review] > Bug 8878 - a command to provide a shell with the koha environment > Signed-off-by: Mason James <mtj@kohaaloha.com> works well, signing off patch QA Comment: This patch was first on the list; so I had to pick it :) Did some limited testing of koha-shell outside packaging env (needed some tweaking). Code looks good. Well documented. As a non-packaging user, some things may not be obvious directly: such as with instance X comes user X-koha. Not a problem. This patch will not break anything; it just adds the koha-shell 'command'. Small note: The perl script has a copyright statement not worded exactly as other perl scripts in Koha like (This file is part of Koha, etc.) Passed QA Created attachment 14209 [details] [review] Patch A short description of the new script could/should also be added to debian/docs/koha-common.xml. This patch has been pushed to master. Pushed to 3.10.x and 3.8.x, will be in 3.10.1 and 3.8.8 Whenever using the koha-shell command I am met with the following error messages: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell Is this something specific to my setup, or is it a general bug/oddity? Looks like Galen has reported the bug now: bug 11775 *** Bug 7667 has been marked as a duplicate of this bug. *** |