Skip to content

Commit

Permalink
fix config load
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Dec 25, 2019
1 parent b3623ee commit 642cb9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LUCI_TITLE:=LuCI support for BaiduPCS-Go
LUCI_DEPENDS:=+baidupcs-web +wget +openssl-util
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_MAINTAINER:=<https://github.com/KFERMercer/luci-app-baidupcs-web>

include $(TOPDIR)/feeds/luci/luci.mk
Expand Down
8 changes: 4 additions & 4 deletions root/etc/init.d/baidupcs-web
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ STOP=10
enabled="$(uci get baidupcs-web.config.enabled)"
port="$(uci get baidupcs-web.config.port)"
download_dir="$(uci get baidupcs-web.config.download_dir)"
max_download_rate="$(uci get baidupcs-web.config.max_download_rate)"
max_upload_rate="$(uci get baidupcs-web.config.max_upload_rate)"
max_download_load="$(uci get baidupcs-web.config.max_download_load)"
max_parallel="$(uci get baidupcs-web.config.max_parallel)"
max_download_rate="$(uci get baidupcs-web.config.max_download_rate || echo '0')"
max_upload_rate="$(uci get baidupcs-web.config.max_upload_rate || echo '0')"
max_download_load="$(uci get baidupcs-web.config.max_download_load || echo '1')"
max_parallel="$(uci get baidupcs-web.config.max_parallel || echo '8')"

start() {
stop
Expand Down

0 comments on commit 642cb9a

Please sign in to comment.