Skip to content

Commit 6edba08

Browse files
committed
Fix init check whith credentials (#4)
1 parent b773d7d commit 6edba08

File tree

1 file changed

+1
-4
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-mod-gluetun-sync-port

1 file changed

+1
-4
lines changed

root/etc/s6-overlay/s6-rc.d/svc-mod-gluetun-sync-port/run

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ init_checks(){
6666
if { [ -z "${QBT_USERNAME}" ] || [ -z "${QBT_PASSWORD}" ] ;} && [ "$(grep 'LocalHostAuth' ${conf_file} | awk -F'=' '{print $2}')" != "false" ]; then
6767
err='true'
6868
log "${MSG_prefix} The \"Bypass authentication for clients on localhost\" setting is not set."
69-
elif [ -n "${QBT_USERNAME}" ] && [ -n "${QBT_PASSWORD}" ] && [ "$(qbt_login; curl --write-out '%{http_code}' \
70-
--silent --output /dev/null \
71-
${QBT_COOKIES} \
72-
--url "${QBITTORRENT}/api/v2/app/version")" -ne 200 ]; then
69+
elif [ -n "${QBT_USERNAME}" ] && [ -n "${QBT_PASSWORD}" ] && [ "$(qbt_login)" != "Ok." ]; then
7370
err='true'
7471
log "${MSG_prefix} Qbittorrent authentication failed, check the credentials."
7572
fi

0 commit comments

Comments
 (0)