aria2: fixed the spelling for rpc-passwd and rpc-user. 7251/head
authorbrv phoenix <feixuekaka1@gmail.com>
Thu, 25 Oct 2018 10:33:43 +0000 (18:33 +0800)
committerbrv phoenix <feixuewhz@gmail.com>
Thu, 25 Oct 2018 13:11:43 +0000 (21:11 +0800)
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
net/aria2/files/aria2.init

index d63c030e6758f4714c9414fc071fc6624f15d868..99212548d6936a93a2bc85e4e24975f8c2ef99bd 100755 (executable)
@@ -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