From 1b93ecf79c404cb304c45e82e6cbc3dfa35d2bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Tue, 23 Jul 2024 11:56:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=20elastic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌森 --- apps/elastic-elasticsearch/8.14.3/docker-compose.yml | 1 + apps/elastic-elasticsearch/8.14.3/scripts/init.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apps/elastic-elasticsearch/8.14.3/docker-compose.yml b/apps/elastic-elasticsearch/8.14.3/docker-compose.yml index c91e997b..69ef9c2d 100644 --- a/apps/elastic-elasticsearch/8.14.3/docker-compose.yml +++ b/apps/elastic-elasticsearch/8.14.3/docker-compose.yml @@ -36,3 +36,4 @@ services: environment: - LICENSE=basic - ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true + - TAKE_FILE_OWNERSHIP=true diff --git a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh index 77b84912..d2270fe6 100644 --- a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh +++ b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh @@ -8,6 +8,8 @@ if [ -f .env ]; then sed -i '/^ENV_FILE=/d' .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + chown -R 1000:0 $BARK_ROOT_PATH + echo "Check Finish." else