From 829a4bc8c723ba301b297eb21e552f0206fcb71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Tue, 23 Jul 2024 13:01:59 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh index 616de008..b968e30c 100644 --- a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh +++ b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh @@ -9,15 +9,16 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env mkdir -p "$ELASTICSEARCH_ROOT_PATH" - mkdir -p "$ELASTICSEARCH_DATA_PATH/certs" mkdir -p "$ELASTICSEARCH_DATA_PATH/data" - mkdir -p "$ELASTICSEARCH_DATA_PATH/logs" + mkdir -p "$ELASTICSEARCH_DATA_PATH/backup" mkdir -p "$ELASTICSEARCH_DATA_PATH/plugins" - chown -R 1000:0 "$ELASTICSEARCH_ROOT_PATH" + chown -R 1000:1000 "$ELASTICSEARCH_ROOT_PATH" + chown -R 1000:1000 "$ELASTICSEARCH_ROOT_PATH/data" + chown -R 1000:1000 "$ELASTICSEARCH_ROOT_PATH/backup" + chown -R 1000:1000 "$ELASTICSEARCH_ROOT_PATH/plugins" echo "Check Finish." - else echo "Error: .env file not found." fi