mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Source the os-release
file in a subshell
This commit is contained in:
parent
a2556d0528
commit
d8dba4936e
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ if [ ! -x /usr/bin/debsecan ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
. /etc/os-release
|
||||
SUITE=${suite:-$VERSION_CODENAME}
|
||||
# Suite is taken from environment but defaults to `os-release` content
|
||||
SUITE=$(. /etc/os-release && echo "${suite:-$VERSION_CODENAME}")
|
||||
|
||||
FIXEDWARN=${fixed_warning:-1}
|
||||
FIXEDCRIT=${fixed_critical:-1000}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue