diff --git a/deploy/restart-all.sh b/deploy/restart-all.sh index ef62651a6..658a6e381 100644 --- a/deploy/restart-all.sh +++ b/deploy/restart-all.sh @@ -31,6 +31,11 @@ if [ -z "${TRAIN_STUDENT_IDENTITY_HASH_KEY:-}" ]; then exit 1 fi +if [ -z "${SPRING_REDIS_PASSWORD:-}" ]; then + echo "错误:缺少 SPRING_REDIS_PASSWORD" + exit 1 +fi + echo "运行时安全配置存在性检查通过" echo "=== 1. 检查并停止当前用户的旧后端进程 ==="