Browse Source

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.
adaptive-webui-19844
Tom Piccirello 3 years ago committed by GitHub
parent
commit
48fa4e116c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dist/docker/entrypoint.sh

2
dist/docker/entrypoint.sh vendored

@ -10,12 +10,12 @@ Session\TempPath=/downloads/temp @@ -10,12 +10,12 @@ 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
fi
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/data" qbittorrent-nox --webui-port=$WEBUI_PORT

Loading…
Cancel
Save