|
|
|
@ -23,6 +23,9 @@ rm -f /config/qBittorrent/data/BT_backup/session.lock
|
|
|
|
|
# force unix line endings conversion in case user edited qbittorrent.conf with notepad
|
|
|
|
|
dos2unix "${qbittorrent_config}"
|
|
|
|
|
|
|
|
|
|
# set locale to prevent 4.1.4 gui render issues if no locale set
|
|
|
|
|
grep -q 'General\\Locale' "${qbittorrent_config}" || sed -i '/\[Preferences\]/a General\\Locale=en' "${qbittorrent_config}"
|
|
|
|
|
|
|
|
|
|
# set default values for port and ip
|
|
|
|
|
qbittorrent_port="6881"
|
|
|
|
|
qbittorrent_ip="0.0.0.0"
|
|
|
|
|