diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-20 01:16:25 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-20 01:19:53 +0100 |
commit | 52c9bac05f917a2218b00f46d694bd2fb2608bb9 (patch) | |
tree | d538e6d49641d591b9253b878bce6468716876aa /main/nagios-plugins | |
parent | 6b8defef2021a135e49853745f6e7c20ab9a7341 (diff) | |
download | aports-52c9bac05f917a2218b00f46d694bd2fb2608bb9.tar.bz2 aports-52c9bac05f917a2218b00f46d694bd2fb2608bb9.tar.xz |
main/nagios-plugins: print post-upgrade only when relevant
Diffstat (limited to 'main/nagios-plugins')
-rw-r--r-- | main/nagios-plugins/nagios-plugins.post-upgrade | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/main/nagios-plugins/nagios-plugins.post-upgrade b/main/nagios-plugins/nagios-plugins.post-upgrade index 1e62e986f7..2750e50264 100644 --- a/main/nagios-plugins/nagios-plugins.post-upgrade +++ b/main/nagios-plugins/nagios-plugins.post-upgrade @@ -1,8 +1,15 @@ #!/bin/sh -cat <<EOF -NOTE: Since 2.0.3-r2 all plugins are separated into subpackages - (e.g. nagios-plugins-disk) and nagios-plugins contains only common - files. If you want to install *all* plugins at once, then you can do: - apk add nagios-plugins-all. -EOF +ver_new="$1" +ver_old="$2" + +if [ "$(apk version -t "$ver_old" "2.0.3-r2")" = "<" ]; then + cat <<-EOF + * Since 2.0.3-r2 all plugins are separated into subpackages + * (e.g. nagios-plugins-disk) and nagios-plugins contains only common + * files. If you want to install *all* plugins at once, then you can do: + * apk add nagios-plugins-all. + EOF +fi + +exit 0 |