Some work about adaptive color scheme for Web UI (PR #19901) http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
663 B

#!/bin/sh
if [ ! -f /config/qBittorrent/qBittorrent.conf ]; then
mkdir -p /config/qBittorrent/
cat << EOF > /config/qBittorrent/qBittorrent.conf
[BitTorrent]
Session\DefaultSavePath=/downloads
Session\TempPath=/downloads/temp
[LegalNotice]
Accepted=false
EOF
fi
if [ "$LEGAL" = "accept" ] ; then
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1true|}}' /config/qBittorrent/qBittorrent.conf
else
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf
fi
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/config" qbittorrent-nox --webui-port=$WEBUI_PORT