Skip to content

Commit

Permalink
singbox运行前先检查是否配置
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed Dec 7, 2024
1 parent 0aee3e4 commit eba6e6c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,12 @@ EOF
}

startSingBox(){

cd ${installpath}/serv00-play/singbox


if [[ ! -e "singbox.json" ]]; then
red "请先进行配置!"
return 1
fi

# if [[ ! -e ${installpath}/serv00-play/singbox/serv00sb ]] || [[ ! -e ${installpath}/serv00-play/singbox/cloudflared ]]; then
# read -p "请输入使用密码:" password
Expand Down Expand Up @@ -670,7 +673,6 @@ startSingBox(){

}


stopSingBox(){
cd ${installpath}/serv00-play/singbox
if [ -f killsing-box.sh ]; then
Expand Down

0 comments on commit eba6e6c

Please sign in to comment.