The most restricted sh implmentation must be taken into account for all scripts.
At the moment, "#!/bin/sh" is specified in shell file headers, but more advanced bash syntax/features are used in the code.
For example in stop script:
should be changed to:
that would work both, on bin/sh and /bin/bash
The same for admin, client, karaf, start scripts