mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 7936: fix script on centos
status 7936: resolved fixed
This commit is contained in:
parent
d590f28efd
commit
daff97e916
@ -47,7 +47,7 @@ elif os.path.exists("/etc/redhat-release"):
|
||||
version = file("/etc/redhat-release").readline()
|
||||
if version.find("Red Hat Enterprise Linux Server release 6") != -1:
|
||||
distro = RHEL6
|
||||
elif version.find("Centos release") != -1:
|
||||
elif version.find("CentOS release") != -1:
|
||||
distro = CentOS
|
||||
elif os.path.exists("/etc/legal") and "Ubuntu" in file("/etc/legal").read(-1): distro = Ubuntu
|
||||
else: distro = Unknown
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user