Skip to content

Commit d79cf67

Browse files
Remove elasticsearch check, better flat tables check
1 parent 53f6bfa commit d79cf67

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

magento/entrypoint.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,7 @@ if [ -f custom-entrypoint.sh ]; then
2121
bash ./custom-entrypoint.sh
2222
fi
2323

24-
# Wait until Elasticsearch is up and running
25-
counter=0
26-
until curl -s -o /dev/null http://localhost:9200; do
27-
counter=$((counter + 1))
28-
echo "Elasticsearch not (yet) available, waiting... (attempt $counter)"
29-
sleep 1
30-
done
31-
32-
if [ -n "$FLAT_TABLES" ]; then
24+
if [ "$FLAT_TABLES" = "true" ]; then
3325
echo "Enabling Flat Tables"
3426
magerun2 config:store:set catalog/frontend/flat_catalog_category 1
3527
magerun2 config:store:set catalog/frontend/flat_catalog_product 1

0 commit comments

Comments
 (0)