From d3616b26fad4d09d03332b2c5aec42b3b11fc25d Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Fri, 14 Jun 2024 16:43:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=20focalboard?= =?UTF-8?q?=20=E5=AE=89=E8=A3=85=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- focalboard/7.11.4/scripts/init.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/focalboard/7.11.4/scripts/init.sh b/focalboard/7.11.4/scripts/init.sh index 781c49e0d..00f08b100 100644 --- a/focalboard/7.11.4/scripts/init.sh +++ b/focalboard/7.11.4/scripts/init.sh @@ -1,3 +1,17 @@ #!/bin/bash -chown -R 65534:65534 ./data/data \ No newline at end of file +DIR="./data/data" + +if [ -d "$DIR" ]; then + echo "目录 $DIR 已存在" +else + echo "目录 $DIR 不存在,正在创建..." + mkdir -p "$DIR" + if [ $? -eq 0 ]; then + echo "目录 $DIR 创建成功" + else + echo "目录 $DIR 创建失败" + fi +fi + +chown -R 65534:65534 $DIR \ No newline at end of file