shrinftdev commited on
Commit
66f1cdd
·
verified ·
1 Parent(s): 0389c94

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -4
entrypoint.sh CHANGED
@@ -2,10 +2,8 @@
2
 
3
  if [ -f /app/frpc ]; then
4
  echo "Starting frpc..."
5
- chmod +x /app/frpc
6
- /app/frpc -c /app/frpc.ini &
7
- FRPC_PID=$!
8
- echo "frpc started with PID $FRPC_PID"
9
  fi
10
 
11
  # 判断 1Panel-core 和 1Panel-agent 命令是否存在,如果任一不存在则执行安装脚本
 
2
 
3
  if [ -f /app/frpc ]; then
4
  echo "Starting frpc..."
5
+ screen -dmS FRPCVV bash /app/frpc -c /app/frpc.ini
6
+ echo "frpc started with PID"
 
 
7
  fi
8
 
9
  # 判断 1Panel-core 和 1Panel-agent 命令是否存在,如果任一不存在则执行安装脚本