Skip to content

Commit eba6e6c

Browse files
committed
singbox运行前先检查是否配置
1 parent 0aee3e4 commit eba6e6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

start.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,12 @@ EOF
638638
}
639639

640640
startSingBox(){
641-
642641
cd ${installpath}/serv00-play/singbox
643-
642+
643+
if [[ ! -e "singbox.json" ]]; then
644+
red "请先进行配置!"
645+
return 1
646+
fi
644647

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

671674
}
672675

673-
674676
stopSingBox(){
675677
cd ${installpath}/serv00-play/singbox
676678
if [ -f killsing-box.sh ]; then

0 commit comments

Comments
 (0)