add support for Ubuntu 18

This commit is contained in:
ronivay
2019-03-21 14:07:51 +02:00
parent f4146c8960
commit 0a4b5887ca
3 changed files with 9 additions and 5 deletions

View File

@@ -610,12 +610,12 @@ function CheckOS {
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9)$ ]]; then
echo "Only Debian 8/9 supported"
exit 0
elif [[ $OSNAME == "Ubuntu" ]] && [[ ! $OSVERSION == "16" ]]; then
echo "Only Ubuntu 16 supported"
elif [[ $OSNAME == "Ubuntu" ]] && [[ ! $OSVERSION =~ ^(16|18)$ ]]; then
echo "Only Ubuntu 16/18 supported"
exit 0
fi
else
echo "Only CentOS 7 / Ubuntu 16 and Debian 8/9 supported"
echo "Only CentOS 7 / Ubuntu 16/18 and Debian 8/9 supported"
exit 0
fi