Download run.sh from lin7zhi/2api: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/lin7zhi/2api/resolve/main/run.sh
- Command line
-
hf download hf://spaces/lin7zhi/2api/run.sh
-
curl -L -o run.sh https://huggingface.co/spaces/lin7zhi/2api/resolve/main/run.sh
295 Bytes
| # 赋予权限 (防止权限丢失) | |
| chmod +x sync.sh | |
| echo "=== GCLI2API 启动流程 ===" | |
| # 1. 先尝试恢复备份 (阻塞模式) | |
| ./sync.sh restore | |
| # 2. 启动后台备份循环 | |
| ./sync.sh loop & | |
| # 3. 启动主程序 (Python) | |
| echo "=== 启动主程序 web.py ===" | |
| python web.py |