luci-app-baidupcs-web: Fix UCI is incorrect in the system log (#8515)

daemon.notice procd: /etc/rc.d/S90baidupcs-web: uci: Entry not found

Co-authored-by: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
This commit is contained in:
Beginner 2021-12-24 14:59:31 +08:00 committed by GitHub
parent ad4916ff3f
commit 1ba0b9f626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,13 +3,13 @@
START=90 START=90
STOP=10 STOP=10
enabled="$(uci get baidupcs-web.config.enabled)" enabled="$(uci -q get baidupcs-web.config.enabled)"
port="$(uci get baidupcs-web.config.port)" port="$(uci -q get baidupcs-web.config.port)"
download_dir="$(uci get baidupcs-web.config.download_dir)" download_dir="$(uci -q get baidupcs-web.config.download_dir)"
max_download_rate="$(uci get baidupcs-web.config.max_download_rate || echo '0')" max_download_rate="$(uci -q get baidupcs-web.config.max_download_rate || echo '0')"
max_upload_rate="$(uci get baidupcs-web.config.max_upload_rate || echo '0')" max_upload_rate="$(uci -q get baidupcs-web.config.max_upload_rate || echo '0')"
max_download_load="$(uci get baidupcs-web.config.max_download_load || echo '1')" max_download_load="$(uci -q get baidupcs-web.config.max_download_load || echo '1')"
max_parallel="$(uci get baidupcs-web.config.max_parallel || echo '8')" max_parallel="$(uci -q get baidupcs-web.config.max_parallel || echo '8')"
start() { start() {
stop stop