Skip to content

Commit

Permalink
Fix init check whith credentials (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-anc committed Aug 26, 2024
1 parent b773d7d commit 6edba08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions root/etc/s6-overlay/s6-rc.d/svc-mod-gluetun-sync-port/run
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ init_checks(){
if { [ -z "${QBT_USERNAME}" ] || [ -z "${QBT_PASSWORD}" ] ;} && [ "$(grep 'LocalHostAuth' ${conf_file} | awk -F'=' '{print $2}')" != "false" ]; then
err='true'
log "${MSG_prefix} The \"Bypass authentication for clients on localhost\" setting is not set."
elif [ -n "${QBT_USERNAME}" ] && [ -n "${QBT_PASSWORD}" ] && [ "$(qbt_login; curl --write-out '%{http_code}' \
--silent --output /dev/null \
${QBT_COOKIES} \
--url "${QBITTORRENT}/api/v2/app/version")" -ne 200 ]; then
elif [ -n "${QBT_USERNAME}" ] && [ -n "${QBT_PASSWORD}" ] && [ "$(qbt_login)" != "Ok." ]; then
err='true'
log "${MSG_prefix} Qbittorrent authentication failed, check the credentials."
fi
Expand Down

0 comments on commit 6edba08

Please sign in to comment.