aboutsummaryrefslogtreecommitdiff
path: root/net/aria2/files
diff options
context:
space:
mode:
authorbrv phoenix <feixuekaka1@gmail.com>2018-10-25 18:33:43 +0800
committerbrv phoenix <feixuewhz@gmail.com>2018-10-25 21:11:43 +0800
commited9514e93e16ad474497fc02071956966de2cf2c (patch)
tree75a219fc3d9d0c8835eddb89f1df4071770920b8 /net/aria2/files
parent0b548cb73d51c07422a6ddc4813a8f1fac248066 (diff)
aria2: fixed the spelling for rpc-passwd and rpc-user.
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
Diffstat (limited to 'net/aria2/files')
-rwxr-xr-xnet/aria2/files/aria2.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/aria2/files/aria2.init b/net/aria2/files/aria2.init
index d63c030e6..99212548d 100755
--- a/net/aria2/files/aria2.init
+++ b/net/aria2/files/aria2.init
@@ -224,7 +224,7 @@ aria2_start() {
append_setting "rpc-secret=${rpc_secret}"
elif [ -n "$rpc_user" ]; then
append_setting "rpc-user=${rpc_user}"
- append_setting "rcp-passwd=${rcp-passwd}"
+ append_setting "rpc-passwd=${rpc_passwd}"
else
_info "It is recommand to set RPC secret."
fi
@@ -235,9 +235,9 @@ aria2_start() {
unset_auth_method
fi
elif [ "$rpc_auth_method" = "user_pass" ]; then
- if [ -n "$rcp_user" ]; then
+ if [ -n "$rpc_user" ]; then
append_setting "rpc-user=${rpc_user}"
- append_setting "rcp-passwd=${rcp-passwd}"
+ append_setting "rpc-passwd=${rpc_passwd}"
else
_info "Please set RPC user."
unset_auth_method