pdf / start.sh
megatrump's picture
添加了后台运行的功能以及密钥设置
506398c
raw
history blame
316 Bytes
# 根据环境变量初始化用户名以及密码
echo "${USERNAME},${PASSWORD}" > users.txt
# 启动一个后台任务避免 Space 进入 Sleep 状态
python3 awake.py &
# 初始化环境变量
python3 init_config.py
# 启动 Server
pdf2zh -i --config config.json --serverport 7860 -t 5 --authorized users.txt