fix(deploy): health_monitor Docker 适配与巡检第三轮修补
Docker 生产用 docker restart;读 .env.prod 端口与容器 Telegram;已归档跳过全量热同步。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -766,8 +766,8 @@ def _configure_guardian(install_dir: str, api_port: str) -> list[str]:
|
||||
content = read_utf8_text(health_sh)
|
||||
import re
|
||||
content = re.sub(
|
||||
r'INSTALL_DIR="[^"]*"',
|
||||
f'INSTALL_DIR="{install_dir}"',
|
||||
r'DEPLOY_DIR="\$\{NEXUS_DEPLOY_DIR:-[^"]*\}"',
|
||||
f'DEPLOY_DIR="${{NEXUS_DEPLOY_DIR:-{install_dir}}}"',
|
||||
content,
|
||||
)
|
||||
write_utf8_lf(health_sh, content)
|
||||
|
||||
Reference in New Issue
Block a user