Ignore:
Timestamp:
2010-02-16T17:59:07+01:00 (7 years ago)
Author:
obsy
Message:

[packages] transmission: correct quoting of parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/transmission/files/transmission.init

    r19396 r19661  
    1414                for v in $v; do 
    1515                        [ -n "$v" ] && ( 
    16                                 echo "          \""$p"\": "$v"," | sed -e 's|_|-|g' >> $config_dir/settings.json 
     16                                echo "\""$p"\": "$v"," | sed -e 's|_|-|g' >> $config_dir/settings.json 
    1717                        ) 
    1818                done 
     
    2828                for v in $v; do 
    2929                        [ -n "$v" ] && ( 
    30                                 echo "          \""$p"\": \""$v"\"," | sed -e 's|/|\\/|g;s|_|-|g' >> $config_dir/settings.json 
     30                                echo "\""$p"\": \""$v"\"," | sed -e 's|/|\\/|g;s|_|-|g' >> $config_dir/settings.json 
    3131                        ) 
    3232                done 
     
    4949        append_params "$s" \ 
    5050                alt_speed_down alt_speed_enabled alt_speed_time_begin alt_speed_time_day \ 
    51                 alt_speed_time_enabled alt_speed_time_end alt_speed_up bind_address_ipv4 \ 
    52                 bind_address_ipv6 blocklist_enabled dht_enabled encryption \ 
     51                alt_speed_time_enabled alt_speed_time_end alt_speed_up \ 
     52                blocklist_enabled dht_enabled encryption \ 
    5353                incomplete_dir_enabled lazy_bitfield_enabled message_level \ 
    5454                open_file_limit peer_limit_global peer_limit_per_torrent peer_port \ 
     
    5959                rpc_enabled rpc_port rpc_whitelist_enabled speed_limit_down \ 
    6060                speed_limit_down_enabled speed_limit_up speed_limit_up_enabled umask \ 
    61                 upload_slots_per_torrent watch_dir watch_dir_enabled 
     61                upload_slots_per_torrent watch_dir_enabled 
    6262 
    6363        append_params_quotes "$s" \ 
    64                 download_dir incomplete_dir proxy proxy_auth_password proxy_auth_username \ 
    65                 rpc_bind_address rpc_password rpc_username rpc_whitelist 
     64                bind_address_ipv4 bind_address_ipv6 download_dir incomplete_dir proxy \ 
     65                proxy_auth_password proxy_auth_username \ 
     66                rpc_bind_address rpc_password rpc_username rpc_whitelist watch_dir 
    6667 
    67         echo "          \""invalid-key"\": false" >> $config_dir/settings.json 
     68        echo "\""invalid-key"\": false" >> $config_dir/settings.json 
    6869        echo "}" >> $config_dir/settings.json 
    6970         
Note: See TracChangeset for help on using the changeset viewer.