luci-app-qbittorrent: fix default settings
This commit is contained in:
parent
0258d3ac22
commit
5906fcecde
@ -1,11 +1,9 @@
|
||||
|
||||
config basic
|
||||
option program_dir '/usr/bin'
|
||||
option library_dir '/usr/lib'
|
||||
option profile_dir '/root'
|
||||
option enable '0'
|
||||
|
||||
config Preferences
|
||||
option download_dir '/root/download'
|
||||
option download_dir '/mnt/download'
|
||||
option port '8080'
|
||||
|
||||
|
||||
@ -50,10 +50,6 @@ run_qbittorrent()
|
||||
if [ "$profile_dir" != "" ]; then
|
||||
mkdir -p $profile_dir/qBittorrent
|
||||
ln -sf /etc/qBittorrent/ipfilter.dat $profile_dir/qBittorrent/ipfilter.dat
|
||||
config_get library_dir $1 library_dir
|
||||
config_get program_dir $1 program_dir
|
||||
export PATH=$PATH:$program_dir
|
||||
export LD_LIBRARY_PATH=$library_dir
|
||||
qbittorrent-nox -d --profile=$profile_dir
|
||||
else
|
||||
echo "no profile_dir,stop!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user