Skip to content

Commit 7ffc130

Browse files
committed
fix(openclaw-bash): 修复阿里云 Debian 源问题并增加最小内存要求
修复阿里云 Debian bullseye-backports 源 404 问题,添加等待 apt 锁释放逻辑 在 case.json 中增加 minMemoryMB 字段,版本号更新至 1.0.5
1 parent 286c62a commit 7ffc130

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

userdata-templates/openclaw-bash/case.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"type": "bash",
55
"category": "ai",
66
"user": "r0fus0d",
7-
"version": "1.0.4",
7+
"version": "1.0.5",
88
"url": "https://openclaw.ai/",
99
"description": "开源 AI 编程助手",
1010
"description_en": "Open source AI programming assistant",
1111
"installNotes": "安装完成后,输入 openclaw onboard --install-daemon 命令配置",
12+
"minMemoryMB": 4096,
1213
"template": "userdata"
1314
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
#!/bin/bash
22
# OpenClaw 自动安装脚本
3+
# 修复阿里云 Debian bullseye-backports 源 404 问题
4+
sed -i '/bullseye-backports/d' /etc/apt/sources.list 2>/dev/null
5+
sed -i '/bullseye-backports/d' /etc/apt/sources.list.d/*.list 2>/dev/null
6+
# 等待云初始化释放 apt 锁
7+
for i in $(seq 1 30); do
8+
if ! fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; then break; fi
9+
echo "Waiting for apt lock... ($i/30)"
10+
sleep 5
11+
done
12+
export DEBIAN_FRONTEND=noninteractive
313
curl -fsSL https://openclaw.ai/install.sh | bash

0 commit comments

Comments
 (0)