Enabled Ubuntu 20.04 for validation and testing
This commit is contained in:
@@ -29,18 +29,15 @@ dist_ver=$(grep --color=never -Po "^VERSION_ID=\K.*" "/etc/os-release")
|
|||||||
dist=$(grep --color=never -Po "^ID=\K.*" "/etc/os-release")
|
dist=$(grep --color=never -Po "^ID=\K.*" "/etc/os-release")
|
||||||
|
|
||||||
if [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"18.04"* ]]; then
|
if [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"18.04"* ]]; then
|
||||||
echo "Ubuntu 18.04 Detected"
|
|
||||||
PKGM="$APTMODE"
|
PKGM="$APTMODE"
|
||||||
PKGI="${PKGM} install -y --no-install-recommends"
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
PKGLIST="apt"
|
PKGLIST="apt"
|
||||||
shortdist=ubu1804
|
shortdist=ubu1804
|
||||||
elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then
|
elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then
|
||||||
echo "Ubuntu 20.04 Detected"
|
echo "Ubuntu 20.04 is not yet fully tested, not recommended for production server"
|
||||||
PKGM="$APTMODE"
|
PKGM="$APTMODE"
|
||||||
PKGI="${PKGM} install -y --no-install-recommends"
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
PKGLIST="apt"
|
PKGLIST="apt"
|
||||||
echo "This OS is not supported"
|
|
||||||
exit
|
|
||||||
shortdist=ubu2004
|
shortdist=ubu2004
|
||||||
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
|
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
|
||||||
echo "Debian 10 Detected"
|
echo "Debian 10 Detected"
|
||||||
|
|||||||
@@ -37,18 +37,15 @@ dist_ver=$(grep --color=never -Po "^VERSION_ID=\K.*" "/etc/os-release")
|
|||||||
dist=$(grep --color=never -Po "^ID=\K.*" "/etc/os-release")
|
dist=$(grep --color=never -Po "^ID=\K.*" "/etc/os-release")
|
||||||
|
|
||||||
if [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"18.04"* ]]; then
|
if [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"18.04"* ]]; then
|
||||||
echo "Ubuntu 18.04 Detected"
|
|
||||||
PKGM="$APTMODE"
|
PKGM="$APTMODE"
|
||||||
PKGI="${PKGM} install -y --no-install-recommends"
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
PKGLIST="apt"
|
PKGLIST="apt"
|
||||||
shortdist=ubu1804
|
shortdist=ubu1804
|
||||||
elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then
|
elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then
|
||||||
echo "Ubuntu 20.04 Detected"
|
echo "Ubuntu 20.04 is not yet fully tested, not recommended for production server"
|
||||||
PKGM="$APTMODE"
|
PKGM="$APTMODE"
|
||||||
PKGI="${PKGM} install -y --no-install-recommends"
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
PKGLIST="apt"
|
PKGLIST="apt"
|
||||||
echo "This os in not supported"
|
|
||||||
exit
|
|
||||||
shortdist=ubu2004
|
shortdist=ubu2004
|
||||||
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
|
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
|
||||||
echo "Debian 10 Detected"
|
echo "Debian 10 Detected"
|
||||||
|
|||||||
Reference in New Issue
Block a user