luci-app-qbittorrent: fix bug

This commit is contained in:
CN_SZTL 2020-01-28 23:23:37 +08:00
parent 26b46af911
commit a4b09ce002
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -20,7 +20,7 @@ config_qbittorrent()
sed -i 's/Downloads\\SavePath=[a-z,/]*//g' $2/qBittorrent/config/qBittorrent.conf
echo "Downloads\SavePath=$download_dir" >> $2/qBittorrent/config/qBittorrent.conf
else
cat >$2/qBittorrent/config/qBittorrent.conf<<-EOF
cat >$2/qBittorrent/config/qBittorrent.conf<<EOF
[AutoRun]
enabled=false
program=
@ -37,7 +37,7 @@ Downloads\SavePath=$download_dir
General\Locale=zh
WebUI\Port=$port
WebUI\CSRFProtection=false
EOF
EOF
fi
}