mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-11 07:51:54 +00:00
更新npc
This commit is contained in:
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
#------------------【NPC】--------------------
|
||||
npc() {
|
||||
|
||||
eval `mbdb export npc`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
# Scripts Here
|
||||
readsh "请输入npc连接命令:" "connect_cmd"
|
||||
|
||||
# readsh "请输入${appname}外网访问配置[1/0]" "openport" "0"
|
||||
readsh "重启${appname}服务[1/0] " "res" "1"
|
||||
[ "$res" = '1' -o -z "$res" ] && ${mbroot}/apps/${appname}/scripts/${appname}.sh restart
|
||||
else
|
||||
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
|
||||
fi
|
||||
|
||||
}
|
||||
#------------------【NPC】--------------------
|
||||
@@ -5,4 +5,4 @@ backupfiles=""
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="一款轻量级、高性能、功能强大的内网穿透代理服务器"
|
||||
newinfo=""
|
||||
version="0.0.7"
|
||||
version="0.0.9"
|
||||
|
||||
18
apps/npc/scripts/config.sh
Normal file
18
apps/npc/scripts/config.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#copyright by monlor
|
||||
|
||||
eval `mbdb export npc`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
# Scripts Here
|
||||
readsh "请输入npc连接命令:" "connect_cmd"
|
||||
|
||||
# readsh "请输入${appname}外网访问配置[1/0]" "openport" "0"
|
||||
readsh "重启${appname}服务[1/0] " "res" "1"
|
||||
[ "$res" = '1' -o -z "$res" ] && return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
Reference in New Issue
Block a user