Skip to content

Commit 4aff0b9

Browse files
authored
Adjust init container script for Elastic License 2.0 (#4191) (#4200)
1 parent 75ee1c7 commit 4aff0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/elasticsearch/initcontainer/prepare_fs_script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var scriptTemplate = template.Must(template.New("").Parse(
6060
6161
# the operator only works with the default ES distribution
6262
license=/usr/share/elasticsearch/LICENSE.txt
63-
if [[ ! -f $license || $(grep -Fxc "ELASTIC LICENSE AGREEMENT" $license) -ne 1 ]]; then
63+
if [[ ! -f $license || $(grep -Exc "ELASTIC LICENSE AGREEMENT|Elastic License 2.0" $license) -ne 1 ]]; then
6464
>&2 echo "unsupported_distribution"
6565
exit ` + fmt.Sprintf("%d", UnsupportedDistroExitCode) + `
6666
fi

0 commit comments

Comments
 (0)