appstore-1panel/apps/focalboard/7.11.4/scripts/upgrade.sh
2024-05-16 10:36:42 +08:00

17 lines
295 B
Bash

#!/bin/bash
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