fix config path
This commit is contained in:
parent
4819ac91cb
commit
de0e29a68f
@ -11,10 +11,10 @@ PKG_ARCH_sunpanel:=$(ARCH)
|
||||
|
||||
PKG_NAME:=sunpanel
|
||||
PKG_VERSION:=1.3.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=3
|
||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/linkease/istore-packages/releases/download/prebuilt/
|
||||
PKG_HASH:=8b1b5cf481bb3421180795600c55b2a4334a285ea1544fa0c2436cea62e8c997
|
||||
PKG_HASH:=3ce70530fad9788c4ce0a2969cffc5b80f010406c7a0185b9a40616e3e67f201
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
||||
|
||||
|
@ -18,7 +18,7 @@ start_service() {
|
||||
lua /usr/libexec/istorec/sunpanel_conf.lua sunpanel /usr/share/sunpanel/conf.temp $config_path/conf.ini
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/sunpanelbin -config $config_path
|
||||
procd_set_param command /usr/sbin/sunpanelbin -cfgPath $config_path
|
||||
procd_set_param stderr 1
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
|
@ -72,7 +72,7 @@ end
|
||||
if #arg == 3 then
|
||||
local cur = uci.cursor()
|
||||
local configs = {}
|
||||
cur:foreach(arg[1], "main", function(s)
|
||||
cur:foreach(arg[1], arg[1], function(s)
|
||||
for k, v in pairs(s) do
|
||||
configs[k] = v
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user