Lars Kruse
398a3ab289
Plugin pacman_pending_updates: switch to simple shell
...
The plugin did not use any bash-specific features.
2021-08-08 15:55:41 +02:00
Lars Kruse
c2aa56531c
Plugin pacman_pending_updates: handle absence of available updates properly
...
"checkupdates" returns the exit code 2, if no updates are pending.
Previously the plugin did not output anything in this case.
Closes : #1233
2021-08-08 15:55:41 +02:00
Steve Schnepp
b526aee0c0
Revert "Plugin pacman_pending_updates: switch to /bin/sh; update version"
...
This reverts commit c9cc2f27f6
.
Actually, it depends on a bashism at line 53:
if hash checkupdates >/dev/null 2>&1; then
2019-07-31 20:48:00 +02:00
Lars Kruse
c9cc2f27f6
Plugin pacman_pending_updates: switch to /bin/sh; update version
...
The plugin does not use any bash-specific features. Thus it is not
necessary to depend on bash.
2019-07-31 03:36:39 +02:00
Lars Kruse
72f0546b04
Plugin pacman_pending_updates: fix and clarify conditionals
...
The "checkupdates" compound statement (" ... || ... && ...") did not
work due to the equal precendence of both operators (introduced in
6cb5c9e104
).
Closes : #1004
Thanks to Ken-ichi Mito for reporting this issue.
2019-07-31 03:33:13 +02:00
Bert Peters
6cb5c9e104
Properly report unknowns
2019-06-10 16:55:12 +02:00
Bert Peters
d272622bb0
Exit when retrieving updates fails.
2019-03-19 12:50:28 +01:00
Bert Peters
b5e31b6612
Clean up pacman_pending_updates.
...
No more environment variables since those can easily be configured with
regular munin settings.
Properly quote all strings.
No longer use temp files for holding update information; instead hold it
all in a variable.
2017-10-05 11:28:15 +02:00
Bert Peters
e9150b1892
Add specific updates to extinfo field.
2017-10-03 11:08:25 +02:00
Bert Peters
39bd69e87c
Clean up plugin.
2017-02-17 15:14:51 +01:00