Skip to content

Commit 8e92a3a

Browse files
committed
New updates to readme
1 parent 9ead0fe commit 8e92a3a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717

1818
### :bell: Recent changes
19+
- **v0.3.2**: Added a notify function to wrap a notify-script, currently DSM/Ssmtp + template script.
1920
- **v0.3.1**: Addded option `-m` , monochrome mode - no printf color codes.
2021
- **v0.3.0**: Added option `-d N`, age (days) new images have to be before being pulled and updated.
2122
- **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:
7475
Then it proceedes to run `pull` and `up -d` on every container with updates.
7576
After the updates are complete, you'll get prompted if you'd like to prune dangling images.
7677

78+
### Notifications:
79+
80+
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!
81+
7782
### :warning: `-r flag` disclaimer and warning
7883
**Wont auto-update the containers, only their images. (compose is recommended)**
7984
`docker run` dont support using new images just by restarting a container.

dockcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
2-
VERSION="v0.3.1"
3-
### ChangeNotes: Added feature (-m) Monochrome Mode, no printf color codes.
2+
VERSION="v0.3.2"
3+
### ChangeNotes: Added a notify function - template and email script (DSM etc)
44
Github="https://github.com/mag37/dockcheck"
55
RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh"
66

@@ -234,7 +234,7 @@ fi
234234
if [[ -n ${GotUpdates[*]} ]] ; then
235235
printf "\n%bContainers with updates available:%b\n" "$c_yellow" "$c_reset"
236236
[[ -z "$AutoUp" ]] && options || printf "%s\n" "${GotUpdates[@]}"
237-
[[ $(type -t send_notification) == function ]] && send_notification ${GotUpdates[@]}
237+
[[ $(type -t send_notification) == function ]] && send_notification "${GotUpdates[@]}"
238238
fi
239239

240240
### Optionally get updates if there's any

0 commit comments

Comments
 (0)