mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00: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…
Reference in New Issue
Block a user