luci-app-qbittorrent: fix default settings

This commit is contained in:
CN_SZTL 2020-01-28 16:15:19 +08:00
parent 0258d3ac22
commit 5906fcecde
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 1 additions and 7 deletions

View File

@ -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'

View File

@ -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!"