Skip to content

Commit

Permalink
New updates to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mag37 committed Jan 3, 2024
1 parent 9ead0fe commit 8e92a3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions dockcheck.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e92a3a

Please sign in to comment.