docs: add enterprise code channel offline install guide

This commit is contained in:
冰朔 2026-07-24 10:54:14 +08:00
commit 31dc1cccb0
7 changed files with 144 additions and 3 deletions

View file

@ -77,7 +77,7 @@ def main() -> None:
if replacements > 1:
raise RuntimeError("multiple legacy /code/ blocks found")
stamp = datetime.datetime.now(datetime.UTC).strftime("%Y%m%dT%H%M%SZ")
stamp = datetime.datetime.now(datetime.timezone.utc).strftime("%Y%m%dT%H%M%SZ")
backup_root = pathlib.Path("/var/backups/guanghu/front-door") / stamp
backup_root.mkdir(parents=True, mode=0o700)
shutil.copy2(SITE_CONFIG, backup_root / "guanghulab.nginx")