mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-18 14:23:07 -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";;
|
||||
*) AUTH_URL=$(get_auth_url "${MANIFEST_URL}" "${TAG}")
|
||||
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
|
||||
for BANNED in $(curl -s https://raw.githubusercontent.com/linuxserver/docker-mods/master/blacklist.txt); do
|
||||
if [[ "${BANNED,,}" == "${USERNAME,,}" ]]; then
|
||||
if [[ -z ${RUN_BANNED_MODS+x} ]]; then
|
||||
write_mod_info "${DOCKER_MOD} is banned from use due to reported abuse aborting mod logic"
|
||||
return
|
||||
write_mod_info "${DOCKER_MOD} is banned from use due to reported abuse, skipping mod"
|
||||
continue
|
||||
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
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user