-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Describe the bug
After converting scripts to use /usr/bin/env, scripts fail to execute due to flags set in shebang line. This issue was introduced in PR #1047.
To Reproduce
Steps to reproduce the behavior:
- Build debian package via gradle
- Install on Debian Buster (dpkg -i)
- Observe:
Preparing to unpack .../opensearch_2.0.0_amd64.deb ...
/usr/bin/env: ‘bash -e’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
dpkg: error processing archive /var/cache/apt/archives/opensearch_2.0.0_amd64.deb (--install):
new opensearch package pre-installation script subprocess returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/opensearch_2.0.0_amd64.deb
Expected behavior
The package should execute install scripts without error and complete the installation.
Plugins
N/A
Screenshots
N/A
Host/Environment (please complete the following information):
- OS: Debian Buster