mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-16 00:41:55 +08:00
17 lines
289 B
Bash
17 lines
289 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
DIR="./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 1001:1001 $DIR
|