mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2024-05-08 20:31:48
This commit is contained in:
parent
ee4a6c7375
commit
94591ee525
@ -1,7 +1,12 @@
|
||||
|
||||
-- 定义luci.controller.feishuvpn模块
|
||||
module("luci.controller.feishuvpn", package.seeall)
|
||||
|
||||
-- index函数:配置FeiShuVpn的管理界面入口
|
||||
function index()
|
||||
-- 创建admin/services/feishuvpn目录下的入口,重定向到config页面
|
||||
-- dependent = true表示该入口依赖于其他服务
|
||||
entry({"admin", "services", "feishuvpn"}, alias("admin", "services", "feishuvpn", "config"), _("FeiShuVpn"), 30).dependent = true
|
||||
|
||||
-- 创建admin/services/feishuvpn/config页面,用于配置FeiShuVpn
|
||||
entry({"admin", "services", "feishuvpn", "config"}, cbi("feishuvpn"))
|
||||
end
|
||||
end
|
@ -27,8 +27,8 @@ do_install() {
|
||||
--dns=127.0.0.1 \
|
||||
--network=host "
|
||||
|
||||
local tz="`uci get system.@system[0].zonename | sed 's/ /_/g'`"
|
||||
[ -z "$tz" ] || cmd="$cmd -e TZ=$tz"
|
||||
# local tz="`uci get system.@system[0].zonename | sed 's/ /_/g'`"
|
||||
# [ -z "$tz" ] || cmd="$cmd -e TZ=$tz"
|
||||
|
||||
cmd="$cmd -v /mnt:/mnt"
|
||||
mountpoint -q /mnt && cmd="$cmd:rslave"
|
||||
|
Loading…
Reference in New Issue
Block a user