Avoid Permission denied on production when running ./restart.sh after pull. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
287 B
Bash
Executable File
14 lines
287 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# AI 建站 — 停止 Docker 栈
|
|
# 用法:./stop.sh
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
cd "$ROOT"
|
|
# shellcheck disable=SC1091
|
|
. "$ROOT/scripts/lib-aijz-deploy.sh"
|
|
|
|
echo "停止 AI 建站 ($ROOT) ..."
|
|
ensure_docker
|
|
stack_down
|
|
echo "已停止."
|