mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
fix: add config.sh
This commit is contained in:
17
apps/ttyd/scripts/config.sh
Normal file
17
apps/ttyd/scripts/config.sh
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/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}端口号" "port" "4200"
|
||||||
|
|
||||||
|
[ "$res" = '1' -o -z "$res" ] && return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user