Spaces:
Runtime error
Runtime error
Download entrypoint.sh from shrinftdev/iCommon: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/shrinftdev/iCommon/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/shrinftdev/iCommon/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/shrinftdev/iCommon/resolve/main/entrypoint.sh
854 Bytes
| if [ -f /app/frpc ]; then | |
| echo "Starting frpc..." | |
| screen -dmS FRPCVV bash /app/frpc -c /app/frpc.ini | |
| echo "frpc started with PID" | |
| fi | |
| # 判断 1Panel-core 和 1Panel-agent 命令是否存在,如果任一不存在则执行安装脚本 | |
| if ! command -v 1panel-core &> /dev/null || ! command -v 1panel-agent &> /dev/null; then | |
| echo "未检测到 1panel-core 或 1panel-agent,准备安装..." | |
| bash /app/install.sh | |
| else | |
| echo "1Panel 已安装,正在启动。" | |
| fi | |
| # 1Panel数据初始化 | |
| systemctl start 1panel-core | |
| sleep 3 | |
| systemctl stop 1panel-core | |
| # 启动 docker | |
| echo "Start Docker" | |
| systemctl start docker | |
| # 启动 1Panel | |
| echo "Start 1Panel Core" | |
| systemctl start 1panel-core | |
| # 等待 1Panel Core 启动 | |
| sleep 3 | |
| echo "Start 1Panel Agent" | |
| systemctl start 1panel-agent | |
| # 监听日志 | |
| systemctl log 1panel-core -f |