Summary: | koha-shell raises " no job control in shell" error | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | Command-line Utilities | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | chris, gmcharlt, kyle.m.hall, liz, mtj, robin, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 15012: use sudo instead of su in koha-shell
Bug 15012: use sudo instead of su in koha-shell Bug 15012: use sudo instead of su in koha-shell |
Description
Jonathan Druart
2015-10-14 13:44:46 UTC
Created attachment 43400 [details] [review] Bug 15012: use sudo instead of su in koha-shell Not sure this is the best way to fix it but it looks to work. Test plan: sudo koha-shell kohadev should not return any error Without this patch, you should get bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell Confirm that other options work as before Created attachment 43402 [details] [review] Bug 15012: use sudo instead of su in koha-shell Not sure this is the best way to fix it but it looks to work. Test plan: sudo koha-shell kohadev should not return any error Without this patch, you should get bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell Confirm that other options work as before Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Works as expected. Tested on kohadevbox:ansible. KOHA_CONF and PERL5LIB are correctly set on the child shell. Bonus point: koha-shell doesn't die if the user issues Ctrl+C to abort an execution. *** Bug 14901 has been marked as a duplicate of this bug. *** *** Bug 11775 has been marked as a duplicate of this bug. *** This looks like it could be good. Seems faster than waiting on whoever to fix su, anyway. Created attachment 43727 [details] [review] Bug 15012: use sudo instead of su in koha-shell Not sure this is the best way to fix it but it looks to work. Test plan: sudo koha-shell kohadev should not return any error Without this patch, you should get bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell Confirm that other options work as before Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Works as expected. Tested on kohadevbox:ansible. KOHA_CONF and PERL5LIB are correctly set on the child shell. Bonus point: koha-shell doesn't die if the user issues Ctrl+C to abort an execution. Signed-off-by: Robin Sheat <robin@catalyst.net.nz> Patch pushed to master. Thanks Jonathan! Pushed to 3.20.x will be in 3.20.5 Pushed to 3.18.x, is in 3.18.12. |