Closed ryzom-pipeline closed 10 years ago
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Problem is a common shell is "dash" that is meant to be a "bash" clone with compatible commands (even if not 100%). I'm not sure /bin/bash is present when /bin/dash is installed :(
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
I have ubuntu precise with dash as /bin/sh and shard is running with this patch
shard.screen.rc is using '/bin/sh service_launcher.sh' to launch the services. Even if you would change shell in script header, it would still be running under /bin/sh (dash). There is other places where shell is used like that.
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
Kervala: bash is kind of required to run the server so it does get installed if not already :-) I believe bash is in base ubuntu packages anyway.
Shard scripts can be made to work with dash (ie remove bashism), but dash built in function 'read' does not support timeout value that service_launcher.sh uses.
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
I created issue #99 for dash scripts
Original report by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
Maybe I'm missing something obvious, but why keep /bin/sh in the scripts when they don't work without bash as a shell?