From 60e070c3d0e5d511b20af1b5ae20b2059cf62b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Tue, 23 Jul 2024 13:52:06 +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/scripts/init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh index cf2452b3..c5dbe273 100644 --- a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh +++ b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh @@ -8,6 +8,11 @@ if [ -f .env ]; then sed -i '/^ENV_FILE=/d' .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + mkdir -p $ELASTICSEARCH_ROOT_PATH + mkdir -p "$ELASTICSEARCH_ROOT_PATH/data" + mkdir -p "$ELASTICSEARCH_ROOT_PATH/backup" + mkdir -p "$ELASTICSEARCH_ROOT_PATH/plugins" + chown -R 1000:1000 $ELASTICSEARCH_ROOT_PATH echo "Check Finish."