修改deploy

This commit is contained in:
whm
2025-11-01 14:29:09 +08:00
parent e4df0cba43
commit 291a768bec

View File

@@ -16,7 +16,7 @@ if [ "$1" = "0" ]; then
else else
echo "默认执行代码拉取" echo "默认执行代码拉取"
fi fi
echo "whm"
# 如果不跳过git pull则拉取最新代码 # 如果不跳过git pull则拉取最新代码
if [ $SKIP_GIT_PULL -eq 0 ]; then if [ $SKIP_GIT_PULL -eq 0 ]; then
echo "" echo ""
@@ -37,12 +37,12 @@ if [ $SKIP_GIT_PULL -eq 0 ]; then
fi fi
# 读取sudo密码 # 读取sudo密码
# echo "" echo ""
# echo -n "请输入sudo密码: " echo -n "请输入sudo密码: "
# read -s SUDO_PASSWORD read -s SUDO_PASSWORD
# echo "" echo ""
# echo "" echo ""
SUDO_PASSWORD="yuxinda01"
# 检查密码是否为空 # 检查密码是否为空
if [ -z "$SUDO_PASSWORD" ]; then if [ -z "$SUDO_PASSWORD" ]; then
echo "错误: 密码不能为空" echo "错误: 密码不能为空"