File size: 336 Bytes
d182423
a864f31
 
7eac263
 
a864f31
 
e63d339
a864f31
 
 
 
 
 
 
 
 
bca2023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -ex

# 执行初始化但忽略退出状态
python3 sync.py --mode init || true

# 如果初始化成功,启动同步服务
python3 sync.py --mode sync &

# 等待几秒确保同步服务正常启动
sleep 1

redis-server --daemonize yes --save "" --appendonly no
sleep 2
redis-cli ping

# 启动 one-api 服务
/one-api