mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
Fix stupid error handling logic issues
This commit is contained in:
+7
-4
@@ -343,15 +343,18 @@ run_mods() {
|
|||||||
"registry-1.docker.io") AUTH_URL="https://auth.docker.io/token?service=registry.docker.io&scope=repository:${ENDPOINT}:pull";;
|
"registry-1.docker.io") AUTH_URL="https://auth.docker.io/token?service=registry.docker.io&scope=repository:${ENDPOINT}:pull";;
|
||||||
*) AUTH_URL=$(get_auth_url "${MANIFEST_URL}" "${TAG}")
|
*) AUTH_URL=$(get_auth_url "${MANIFEST_URL}" "${TAG}")
|
||||||
esac
|
esac
|
||||||
if [[ -z "${AUTH_URL}" ]]; then write_mod_error "Could not fetch auth URL from registry, skipping mod";fi
|
if [[ -z "${AUTH_URL}" ]]; then
|
||||||
|
write_mod_error "Could not fetch auth URL from registry for ${DOCKER_MOD}, skipping mod"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
# Kill off modification logic if any of the usernames are banned
|
# Kill off modification logic if any of the usernames are banned
|
||||||
for BANNED in $(curl -s https://raw.githubusercontent.com/linuxserver/docker-mods/master/blacklist.txt); do
|
for BANNED in $(curl -s https://raw.githubusercontent.com/linuxserver/docker-mods/master/blacklist.txt); do
|
||||||
if [[ "${BANNED,,}" == "${USERNAME,,}" ]]; then
|
if [[ "${BANNED,,}" == "${USERNAME,,}" ]]; then
|
||||||
if [[ -z ${RUN_BANNED_MODS+x} ]]; then
|
if [[ -z ${RUN_BANNED_MODS+x} ]]; then
|
||||||
write_mod_info "${DOCKER_MOD} is banned from use due to reported abuse aborting mod logic"
|
write_mod_info "${DOCKER_MOD} is banned from use due to reported abuse, skipping mod"
|
||||||
return
|
continue
|
||||||
else
|
else
|
||||||
write_mod_info "You have chosen to run banned mods ${DOCKER_MOD} will be applied"
|
write_mod_info "You have chosen to run banned mods, ${DOCKER_MOD} will be applied"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user