From d17ba1c43636a3fe7fdb79829dfe3f5fec52e80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Tue, 12 Dec 2023 13:53:01 +0000 Subject: [PATCH] chmod +x scripts/mirror/name-search.sh Also add shebang & update docker-compose to execute script directly --- docker-compose-dev.yml | 2 +- docker-compose.yml | 2 +- scripts/mirror-name-search.sh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/mirror-name-search.sh diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 504c6d354e..f5d8942ba1 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -87,7 +87,7 @@ services: image: temporalio/admin-tools:1.22 stdin_open: true tty: true - entrypoint: ["bash", "/etc/temporal/entrypoint.sh"] + entrypoint: /etc/temporal/entrypoint.sh restart: on-failure healthcheck: test: ["CMD", "tctl", "workflow", "list"] diff --git a/docker-compose.yml b/docker-compose.yml index a7778d77d2..5645f2b1e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -75,7 +75,7 @@ services: stdin_open: true tty: true restart: on-failure - entrypoint: ["bash", "/etc/temporal/entrypoint.sh"] + entrypoint: /etc/temporal/entrypoint.sh healthcheck: test: ["CMD", "tctl", "workflow", "list"] interval: 1s diff --git a/scripts/mirror-name-search.sh b/scripts/mirror-name-search.sh old mode 100644 new mode 100755 index da50963d72..b523f51d78 --- a/scripts/mirror-name-search.sh +++ b/scripts/mirror-name-search.sh @@ -1,3 +1,5 @@ +#!/bin/sh + sleep 5 # Check if MirrorName attribute exists