enonic / xp-distro

Enonic XP full distribution.
GNU General Public License v3.0
3 stars 3 forks source link

The shebang line in scripts (sh) is not generic enough #170

Closed anatol-sialitski closed 3 years ago

anatol-sialitski commented 3 years ago

Currently the shebang line expects bash in a certain location: https://github.com/enonic/xp/blob/f850ff1eb8de1c83d25fa4ba8983200b34f98e94/modules/runtime/src/bin/server.sh#L1

This does not work on irregular distributions (such as NixOS).

This should be changed to #!/usr/bin/env bash to be more generic. This applies to all scripts containing a shebang line.