Repository navigation
fix!: --once sends no alerts now and exits 2 when it can't see everything, and unknown settings are refused - #23
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category
Bugfix (mostly
--once, plus a trap for typos in the config files)Overview
--onceis sold as handy for cron, but it had two habits that didn't help there. If it couldn't reach Docker, it printed the problem and exited 0, so cron read that as all clear. Now it exits 2 when nothing needs patching but it couldn't see everything, and 1 still wins when something does. It also sent real alerts and saved them to the state file, so running it beside the server (docker exec patchcall /patchcall --once) alerted twice, and then the server wrote over what it saved. It doesn't alert or touch the state file now, and leaves both to the server.make runstops pinging your phone too.The overrides and inventory files refuse keys they don't know. An override with
untrack:used to swap the bundled Jellyfin entry for one with no repo, so it went Unmapped, and an inventory line withverison:read as "Version unknown". Both show up as a problem with the line number now. An empty or comment-only overrides file still loads fine.PATCHCALL_LOG_LEVEL=warning(which most apps take) used to drop back to info without a word. Now it refuses to start, same as a bad interval does.Issue Number
N/A
Additional Info
--oncefrom cron to get alerts, that stops. Run the server for alerts, or go off the exit code.