feat: 增加 OpenLDAP 应用 (#1664)

* feat: 增加 OpenLDAP 应用
This commit is contained in:
BugKing
2024-07-02 11:39:54 +08:00
committed by GitHub
parent 3648f92a05
commit 83737300f5
7 changed files with 132 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/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