mirror of
https://github.com/qbittorrent/docker-qbittorrent-nox.git
synced 2024-11-30 04:40:39 +00:00
Always check for EULA env variable
Otherwise if the first run fails, there won't be easy way to fix it.
This commit is contained in:
parent
94dcacb8b3
commit
bf1561ecec
@ -35,13 +35,13 @@ Session\TempPath=/downloads/temp
|
||||
[LegalNotice]
|
||||
Accepted=false
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ "$QBT_EULA" = "accept" ]; then
|
||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1true|}}' "$qbtConfigFile"
|
||||
else
|
||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' "$qbtConfigFile"
|
||||
fi
|
||||
fi
|
||||
|
||||
# those are owned by root by default
|
||||
# don't change existing files owner in `$downloadsPath`
|
||||
|
@ -35,13 +35,13 @@ Session\TempPath=/downloads/temp
|
||||
[LegalNotice]
|
||||
Accepted=false
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ "$QBT_EULA" = "accept" ]; then
|
||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1true|}}' "$qbtConfigFile"
|
||||
else
|
||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' "$qbtConfigFile"
|
||||
fi
|
||||
fi
|
||||
|
||||
# those are owned by root by default
|
||||
# don't change existing files owner in `$downloadsPath`
|
||||
|
Loading…
Reference in New Issue
Block a user