vagrant@kohadevbox:kohaclone(master)$ sudo koha-shell kohadev bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell kohadev-koha@kohadevbox:/home/vagrant/kohaclone
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.