Files
MIXBOX-ARCHIVE/apps/tinyproxy/config/mixbox.conf
2020-03-05 00:08:40 +08:00

23 lines
755 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#------------------【TinyProxy】--------------------
tinyproxy() {
eval `mbdb export tinyproxy`
source /etc/mixbox/bin/base
echo "********* $service ***********"
echo "[${appinfo}]"
readsh "启动${appname}服务[1/0] " "enable" "1"
if [ "$enable" == '1' ]; then
read -p "修改${appname}端口号(`mbdb get ${appname}.main.port || echo 8888`)[1/0] " res
if [ "$res" == '1' ]; then
read -p "请输入${appname}端口号(默认8888)" res
mbdb set $appname.main.port="$res"
fi
readsh "请输入${appname}外网访问配置[1/0]" "openport" "1"
${mbroot}/apps/${appname}/scripts/${appname}.sh restart
else
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
fi
}
#------------------【TinyProxy】--------------------