mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-30 02:16:59 +08:00
verysync add profiledir config (#3612)
This commit is contained in:
parent
6db2e387a8
commit
e304e1dbc0
@ -21,4 +21,7 @@ o.placeholder = "8886"
|
|||||||
o.default = "8886"
|
o.default = "8886"
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
|
o = s:option(Value, "profile", translate("Store configuration files in the Path"))
|
||||||
|
o.default = '/etc/verysync/'
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
@ -6,3 +6,6 @@ msgstr "简单易用的多平台文件同步软件, 惊人的传输速度是不
|
|||||||
|
|
||||||
msgid "Open Verysync page"
|
msgid "Open Verysync page"
|
||||||
msgstr "打开微力同步页面"
|
msgstr "打开微力同步页面"
|
||||||
|
|
||||||
|
msgid "Store configuration files in the Path"
|
||||||
|
msgstr "配置文件存放路径"
|
||||||
|
@ -6,10 +6,11 @@ STOP=10
|
|||||||
start() {
|
start() {
|
||||||
local enabled="$(uci get verysync.config.enabled)"
|
local enabled="$(uci get verysync.config.enabled)"
|
||||||
local port="$(uci get verysync.config.port)"
|
local port="$(uci get verysync.config.port)"
|
||||||
|
local profile="$(uci get verysync.config.profile)"
|
||||||
stop
|
stop
|
||||||
[ "${enabled}" == "1" ] || exit 0
|
[ "${enabled}" == "1" ] || exit 0
|
||||||
export HOME="/root/"
|
export HOME="/root/"
|
||||||
verysync -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="/etc/verysync/" -no-browser >/dev/null 2>&1 &
|
verysync -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="${profile}" -no-browser >/dev/null 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user