mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Fix Docker legal notice when using existing config
If the user is using a pre-existing config, don't update the legal notice. PR #16974.
This commit is contained in:
10
dist/docker/entrypoint.sh
vendored
10
dist/docker/entrypoint.sh
vendored
@@ -10,12 +10,12 @@ Session\TempPath=/downloads/temp
|
|||||||
[LegalNotice]
|
[LegalNotice]
|
||||||
Accepted=false
|
Accepted=false
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$LEGAL" = "accept" ] ; then
|
if [ "$LEGAL" = "accept" ] ; then
|
||||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1true|}}' /config/qBittorrent/qBittorrent.conf
|
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1true|}}' /config/qBittorrent/qBittorrent.conf
|
||||||
else
|
else
|
||||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf
|
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/data" qbittorrent-nox --webui-port=$WEBUI_PORT
|
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/data" qbittorrent-nox --webui-port=$WEBUI_PORT
|
||||||
|
|||||||
Reference in New Issue
Block a user