Commit graph

17 commits

Author SHA1 Message Date
sudo-kraken
fee18898b5 WIP: Phase 3 async processing - needs syntax fixes
- Added async container checking with xargs -P support
- Implemented check_image() function for subprocess execution
- Updated container processing to use async pattern
- Added proper timeout handling and improved error checking
- Need to resolve syntax issues in update logic section
2025-09-16 09:52:04 +01:00
sudo-kraken
a77abafc04 Phase 2: Add notification system and improve dependency management
- Added notify_v2.sh wrapper for advanced notification management
- Updated Discord and Gotify notification templates for v2 compatibility
- Added snooze functionality to prevent duplicate notifications
- Added support for multiple notification channels and formats (JSON, CSV, text)
- Implemented robust dependency management system with package manager and static binary fallback
- Added helper functions: releasenotes(), list_options(), progress_bar()
- Improved datecheck() function with proper error handling
- Added distro_checker() and binary_downloader() functions
- Replaced old dependency checks with modern dependency_check() system
2025-09-16 09:40:30 +01:00
sudo-kraken
5257343706 Phase 1: Add configuration system and command line options
- Added default.config file with all configuration options
- Updated version to v0.7.1-podman to track upstream sync
- Added configuration file sourcing functionality
- Updated Help() function with all missing command line options
- Added new command line flags: -F, -I, -M, -u, -x
- Modernized variable initialization with defaults
- Added helper functions for conditional execution
- Updated getopts to handle all new options
- Added search name filtering with comma separation support
- Improved curl arguments with retry logic
2025-09-16 09:28:05 +01:00
Joe Harrison
9daee4a523
style changes for output 2025-02-25 17:01:05 +00:00
Joe Harrison
88e1f6646c
v0.6.0 qualet location logic update
able to find service names that do not match the container name
2025-02-25 16:32:34 +00:00
Joe Harrison
a7dcd975b2
Upstream patches and additional patching (#2)
* Ensures DSM GUI refreshes its updates

* Removed whale icon and changed verbosity

* Added addon for Prometheus+node_exporter

* Changed local image check to check on image ID rather than name

* Update podcheck.sh

changed docker->podman, typo

* - **v0.6.0**:
    - **Grafana & Prometheus Integration:**
      - Added a detailed Prometheus metrics exporter that now reports not only the number of containers with updates, no-updates, and errors, but also the total number of containers checked, the duration of the update check, and the epoch timestamp of the last check.
      - Enhanced documentation with instructions on integrating these metrics with Grafana for visual monitoring.
    - **Improved Error Handling & Code Refactoring:**
      - Introduced `set -euo pipefail` and local variable scoping within functions to improve reliability and prevent unexpected behaviour.
      - Standardised container name handling and refined the Quadlet detection logic.
    - **Self-Update Enhancements:**
      - Updated the self-update mechanism to support both Git-based and HTTP-based updates, with an automatic restart that preserves the original arguments.
    - **Miscellaneous Improvements:**
      - Enhanced dependency installer to support both package manager and static binary installations for `jq` and `regctl`.
      - General code refactoring across the project for better readability and maintainability.

* Update podcheck.sh

* increment version

* Update Quadlet detection logic 

Update Quadlet detection logic to support flexible service naming

- Modified the quadlet update block to first try an exact match for "$i.service".
- If no exact match is found, build a regex pattern from the container name (allowing underscores and hyphens interchangeably) and search user service units.
- When multiple candidate units are found, the script attempts to choose the one that exactly matches (ignoring case) or defaults to the first candidate.
- This update allows containers like "containera" to match service units named "container_a.service" and supports scenarios with multiple counterparts (e.g., matrix-a, matrix-b, matrix_db).

* search name fix

* fixes to arg parsing

* Logic overhaul, verbose output and better syntax

* Added support for prometheus

---------

Co-authored-by: mag37 <robin.ivehult@gmail.com>
2025-02-25 14:12:01 +00:00
mag37
11e7227876
version bump 2024-11-25 15:20:34 +01:00
mag37
559a8e633b added jq to gitignore, made podcheck.sh executable 2024-11-25 14:08:20 +01:00
mag37
fb076c2912 Dependency downloader rewrite.
jq logic added, package manager + static.
Added function to check for distribution.
Added function to grab static binary.
2024-11-25 14:05:30 +01:00
mag37
cba53def9a added jq binary check 2024-11-19 21:05:11 +01:00
mag37
417359f2de changed variable name and consistent syntax 2024-11-19 21:01:39 +01:00
mag37
424b680ad8 Metadata jq extraction rewritten 2024-11-19 21:00:07 +01:00
Joe Harrison
7e9bdaa258
Update podcheck.sh - Increment version for new release 2024-11-17 19:55:03 +00:00
mag37
c367635974
Changed digest inspect
Reported false positive update available due to not matching local hash.
2024-11-17 17:03:31 +01:00
Joe Harrison
67fb6bef45
Update podcheck.sh - reverted to wildcard hash checking 2024-11-17 15:00:30 +00:00
Joe Harrison
f4376f6d11
Update podcheck.sh - placeholder eliminated
Fixed placeholder for github location
2024-11-17 14:52:00 +00:00
Joe Harrison
61a38ad6c1 Podcheck Initial Release 2024-11-16 18:42:39 +00:00
Renamed from dockcheck.sh (Browse further)