Fix Debian package bash requires clause

This commit fixes the Debian package requires clause for bash. For the
RPM it is okay to specify the binary, but for the Debian package the
package name must be specified.
This commit is contained in:
Jason Tedor 2016-05-11 20:05:09 -04:00
parent 189341da10
commit 8adfd60079

View File

@ -317,7 +317,11 @@ configure(subprojects.findAll { ['deb', 'rpm'].contains(it.name) }) {
preUninstall file("${scripts}/prerm")
postUninstall file("${scripts}/postrm")
requires('/bin/bash')
if (project.name == 'rpm') {
requires('/bin/bash')
} else if (project.name == 'deb') {
requires('bash')
}
into '/usr/share/elasticsearch'
fileMode 0644