Merge 636c0475cd
into bc0324f957
This commit is contained in:
commit
c0480a90ab
1 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,13 @@ check_ip() {
|
|||
printf %s "$1" | tr -d '\n' | grep -Eq "$IP_REGEX"
|
||||
}
|
||||
|
||||
if [ ! -x /usr/bin/lsb_release ]
|
||||
then
|
||||
echo "The lsb_release command was not found." >&2
|
||||
echo "Installing lsb-release, Please Wait..."
|
||||
apt-get -y install lsb-release || exiterr2
|
||||
fi
|
||||
|
||||
os_type="$(lsb_release -si 2>/dev/null)"
|
||||
if [ -z "$os_type" ]; then
|
||||
[ -f /etc/os-release ] && os_type="$(. /etc/os-release && echo "$ID")"
|
||||
|
|
Loading…
Add table
Reference in a new issue