Added MSVSphere to common script
This commit is contained in:
@@ -61,7 +61,7 @@ elif [ -e "/etc/os-release" ] && [ -e "/etc/redhat-release" ]; then
|
|||||||
type=$(grep "^ID=" /etc/os-release | cut -f 2 -d '"')
|
type=$(grep "^ID=" /etc/os-release | cut -f 2 -d '"')
|
||||||
VERSION=$type
|
VERSION=$type
|
||||||
# TODO: Not sure if this required
|
# TODO: Not sure if this required
|
||||||
if [[ "$type" =~ ^(rhel|almalinux|eurolinux|ol|rocky|centos)$ ]]; then
|
if [[ "$type" =~ ^(rhel|almalinux|eurolinux|ol|rocky|centos|msvsphere)$ ]]; then
|
||||||
release=$(rpm --eval='%rhel')
|
release=$(rpm --eval='%rhel')
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user