mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
aria2: fixed the spelling for rpc-passwd and rpc-user.
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
This commit is contained in:
@@ -224,7 +224,7 @@ aria2_start() {
|
|||||||
append_setting "rpc-secret=${rpc_secret}"
|
append_setting "rpc-secret=${rpc_secret}"
|
||||||
elif [ -n "$rpc_user" ]; then
|
elif [ -n "$rpc_user" ]; then
|
||||||
append_setting "rpc-user=${rpc_user}"
|
append_setting "rpc-user=${rpc_user}"
|
||||||
append_setting "rcp-passwd=${rcp-passwd}"
|
append_setting "rpc-passwd=${rpc_passwd}"
|
||||||
else
|
else
|
||||||
_info "It is recommand to set RPC secret."
|
_info "It is recommand to set RPC secret."
|
||||||
fi
|
fi
|
||||||
@@ -235,9 +235,9 @@ aria2_start() {
|
|||||||
unset_auth_method
|
unset_auth_method
|
||||||
fi
|
fi
|
||||||
elif [ "$rpc_auth_method" = "user_pass" ]; then
|
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 "rpc-user=${rpc_user}"
|
||||||
append_setting "rcp-passwd=${rcp-passwd}"
|
append_setting "rpc-passwd=${rpc_passwd}"
|
||||||
else
|
else
|
||||||
_info "Please set RPC user."
|
_info "Please set RPC user."
|
||||||
unset_auth_method
|
unset_auth_method
|
||||||
|
|||||||
Reference in New Issue
Block a user