[#1] 容器启动时刻创建持久化数据目录和修改权限

This commit is contained in:
root
2025-09-17 04:28:35 +00:00
parent 2faa13c567
commit 8391108327
4 changed files with 4 additions and 10 deletions

View File

@@ -3,8 +3,9 @@ set -euo pipefail
echo "[INFO] Starting Elasticsearch under supervisor..."
# 创建数据目录(如果不存在)
# 创建数据目录并设置权限(如果不存在)
mkdir -p /private/argus/log/elasticsearch
chown -R elasticsearch:elasticsearch /private/argus/log/elasticsearch
# 创建软链接到Elasticsearch预期的数据目录
if [ -L /usr/share/elasticsearch/data ]; then