This commit is contained in:
2023-03-10 11:46:52 +08:00
parent eb26f6e3f2
commit b0a7082a38
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
#!/bin/bash
# 判断 app 用户是否存在
if id "app" >/dev/null 2>&1; then
echo "User app exists."
if id "appruner" >/dev/null 2>&1; then
echo "User appruner exists."
else
# 创建 app 用户
echo "Creating user app..."
useradd -m -s /bin/bash app
echo "Creating user appruner..."
useradd -m -s /bin/bash appruner
fi
app_name=gin-article