* Notify_v2.sh bug fixes
* Clarify notify_v2.sh usage in README.md
* Fix JSON newline handling in Discord and Telegram channels
* Additional error messages when notification templates fail to be sourced
* Additional variable for self-hosted ntfy.sh domain
* Notify_v2.sh additional fixes
* Clarify usage in README.md and notify template comments
* Support sourcing template files from project root
* Add days old message to notification title
* Handle JSON with jq in Discord and Telegram templates
* Tweak notify_v2.sh usage docs and comments
* Remove extra newline from notification body
* replaced jq with jqbin, reodered setting of jqbin, changed source for hostname var
* moved the setting of jqbin a bit further up after further testing
---------
Co-authored-by: Matthew Oleksowicz <matt@everyoneneeds.it>
Co-authored-by: mag37 <robin.ivehult@gmail.com>
* Refactor notifications and add helper functions
* Add helper functions to simplify sourcing files and executing functions if they exist
* Create notify_v2.sh wrapper script
* Simplify and consolidate notification logic within notify_v2.sh
* Support notification management via environment variables
* Move secrets to dockcheck.config
* Fix NOTIFY_CHANNELS default value when not set
* Feedback changes
* Remove leading spaces from MessageBody
* Check for valid notify v2 variables
* Warn on missing configuration and bypass notifications
* Update readme
* Additional feedback fixes
* More comments in default.config with different # depth for comments and settings
* Rename NOTIFY_TOPIC_NAME variable to NTFY_TOPIC_NAME for consistency
* Add TELEGRAM_TOPIC_ID
* Fix AppriseURL variable
* Add an ending newline to all MessageBody statements for consistency
* Remove troubleshooting echo statement
* Prevent attempting to trigger notifications for notification templates if versions are the same
---------
Co-authored-by: Matthew Oleksowicz <matt@everyoneneeds.it>
* first iteration rewriting the update logic
* formatting fixes
* Added an option to have compose up only target the specific container.
Used with either -F flag, config variable or label.
* Skipping update check on non-compose containers unless option is set
* Versionbump
Added new info and upped the version number.
* added check for docker socket permissions
* added sudo-check to pkg-manager
* corrected variable typo and some printf colors
* and newline..
* DSM extra readme added
* final tweaks, DSM readme
* added markdown to readme
* added markdown support to telegram template
* removed container specification from compose up -d
This will ensure any dependant containers in the same stack will
restart, others will be untouched.
* Rearranged where the url enrichment happens
* correcting colors
* hides progress bar in monochrome mode, added monochrome mode to config
* Added config/option to auto self-update, use with caution!
* use notification release notes url function for cli options as well
* added the flag, reordered flags
* change output order + add alpine pkgmngr
* changed logic of default.config
* added an extras section
* modifying urls list, adding option flag
* prometheus hotfix + minor tweaks
* quick pkginstaller fix
---------
Co-authored-by: Joachim Schuster <dev@joachimschuster.de>
* cleaning spaces and consistent formatting
* removed more subshells
* progress bar cleanup
* moved uservars to a .config file
* rewritten options from yes/no to true/false
* initialized default variables
* added bash options: -euo pipefail, shopt -s nullglob and failglob
* quoting variables, cleaning syntax, logic and order
* unquoted some variables due to breakage
* added exit on pull-fail
* added new sponsor
* added Slack template
This change adds an optional pre-commit configuration that can be used
to keep the code style clean. I've also run it across all files and
fixed numerous whitespaces issues.
To use it, if wanted, just clone / pull the repo as normal, go into the
folder and run:
```
pre-commit install
```
From that point on, when running `git commit`, it will run the checks
on any changed files.
Feel free to ignore this PR if you're not interested.