Add a method to check if the version of debian is 9.
This commit is contained in:
parent
79c179f7c2
commit
dc268f3198
11
lib/utils.sh
11
lib/utils.sh
|
@ -382,3 +382,14 @@ is_pkg_installed()
|
|||
FNRET=1
|
||||
fi
|
||||
}
|
||||
|
||||
is_debian_9()
|
||||
{
|
||||
if $(cat /etc/debian_version | grep -q "^9.[0-9]"); then
|
||||
debug "Debian version is 9.*."
|
||||
FNRET=0
|
||||
else
|
||||
debug "Debian version is not 9.*."
|
||||
FNRET=1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue