We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ee1c7 commit 4aff0b9Copy full SHA for 4aff0b9
pkg/controller/elasticsearch/initcontainer/prepare_fs_script.go
@@ -60,7 +60,7 @@ var scriptTemplate = template.Must(template.New("").Parse(
60
61
# the operator only works with the default ES distribution
62
license=/usr/share/elasticsearch/LICENSE.txt
63
- if [[ ! -f $license || $(grep -Fxc "ELASTIC LICENSE AGREEMENT" $license) -ne 1 ]]; then
+ if [[ ! -f $license || $(grep -Exc "ELASTIC LICENSE AGREEMENT|Elastic License 2.0" $license) -ne 1 ]]; then
64
>&2 echo "unsupported_distribution"
65
exit ` + fmt.Sprintf("%d", UnsupportedDistroExitCode) + `
66
fi
0 commit comments