R1000 commited on
Commit
b04a5ed
·
verified ·
1 Parent(s): ba50f29

Update start_openclaw.sh

Browse files
Files changed (1) hide show
  1. start_openclaw.sh +3 -3
start_openclaw.sh CHANGED
@@ -8,7 +8,7 @@ mkdir -p /root/.openclaw/credentials
8
  mkdir -p /root/.openclaw/sessions
9
 
10
  # 2. ดำเนินการเรียกคืนข้อมูล (ถูกคอมเมนต์ไว้)
11
- # python3 /app/sync.py restore
12
 
13
  # 3. จัดการที่อยู่ API ให้อยู่ในรูปแบบที่ถูกต้อง
14
  CLEAN_BASE=$(echo "$OPENAI_API_BASE" | sed "s|/chat/completions||g" | sed "s|/v1/|/v1|g" | sed "s|/v1$|/v1|g")
@@ -73,8 +73,8 @@ cat > /root/.openclaw/openclaw.json <<EOF
73
  }
74
  EOF
75
 
76
- # 5. เริ่มต้นการสำรองข้อมูลอัตโนมัติทุก 1 ชั่วโมง (ถูกคอมเมต์ไว้)
77
- # (while true; do sleep 3600; python3 /app/sync.py backup; done) &
78
 
79
  # 6. ตรวจสอบและแก้ไขปัญหาการกำหนดค่า จากนั้นรันเกตเวย์
80
  openclaw doctor --fix
 
8
  mkdir -p /root/.openclaw/sessions
9
 
10
  # 2. ดำเนินการเรียกคืนข้อมูล (ถูกคอมเมนต์ไว้)
11
+ python3 /app/sync.py restore
12
 
13
  # 3. จัดการที่อยู่ API ให้อยู่ในรูปแบบที่ถูกต้อง
14
  CLEAN_BASE=$(echo "$OPENAI_API_BASE" | sed "s|/chat/completions||g" | sed "s|/v1/|/v1|g" | sed "s|/v1$|/v1|g")
 
73
  }
74
  EOF
75
 
76
+ # 5. เริ่มต้นการสำรองข้อมูลอัตโนมัติทุก 30าที
77
+ (while true; do sleep 1800; python3 /app/sync.py backup; done) &
78
 
79
  # 6. ตรวจสอบและแก้ไขปัญหาการกำหนดค่า จากนั้นรันเกตเวย์
80
  openclaw doctor --fix