diff --git a/README.md b/README.md index 8a602b9..0955f59 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ ### :bell: Recent changes +- **v0.3.2**: Added a notify function to wrap a notify-script, currently DSM/Ssmtp + template script. - **v0.3.1**: Addded option `-m` , monochrome mode - no printf color codes. - **v0.3.0**: Added option `-d N`, age (days) new images have to be before being pulled and updated. - **v0.2.6**: regctl check / download logic changed. Now using the scripts directory as primary location. @@ -74,6 +75,10 @@ Enter number(s) separated by comma, [a] for all - [q] to quit: Then it proceedes to run `pull` and `up -d` on every container with updates. After the updates are complete, you'll get prompted if you'd like to prune dangling images. +### Notifications: + +A simple email notification function is added, with a generic example and DSM/Ssmtp script by [yoyoma2](https://github.com/yoyoma2). Further addons are welcome, suggestions or PR! + ### :warning: `-r flag` disclaimer and warning **Wont auto-update the containers, only their images. (compose is recommended)** `docker run` dont support using new images just by restarting a container. diff --git a/dockcheck.sh b/dockcheck.sh index a797d99..9b7f39b 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="v0.3.1" -### ChangeNotes: Added feature (-m) Monochrome Mode, no printf color codes. +VERSION="v0.3.2" +### ChangeNotes: Added a notify function - template and email script (DSM etc) Github="https://github.com/mag37/dockcheck" RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh" @@ -234,7 +234,7 @@ fi if [[ -n ${GotUpdates[*]} ]] ; then printf "\n%bContainers with updates available:%b\n" "$c_yellow" "$c_reset" [[ -z "$AutoUp" ]] && options || printf "%s\n" "${GotUpdates[@]}" - [[ $(type -t send_notification) == function ]] && send_notification ${GotUpdates[@]} + [[ $(type -t send_notification) == function ]] && send_notification "${GotUpdates[@]}" fi ### Optionally get updates if there's any