更新npc

This commit is contained in:
monlor
2020-03-07 09:33:05 +08:00
parent 5303288d1f
commit 67c67c8151
4 changed files with 19 additions and 22 deletions

View 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