]> git.koha-community.org Git - koha.git/commit
Bug 15012: use sudo instead of su in koha-shell
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Oct 2015 13:45:24 +0000 (13:45 +0000)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 29 Oct 2015 23:02:36 +0000 (12:02 +1300)
commit4a3f5c47979d9772c82f37475eb32766ad91e073
treee06361d47b016fea65a80264bdabc93724ee2675
parent3363aa62287d9f161507f3f02c0f2fbbbef2fb29
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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0e9e51db94abdabe6e603d98a05bf315c8d3fa91)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit fb546fa7ac5d572d722aa4dcc79edb56976b517b)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
debian/scripts/koha-shell