Merge "Make conditionals more consistent"
This commit is contained in:
commit
4825218378
4
Rakefile
4
Rakefile
|
@ -82,9 +82,9 @@ def _run_commands(desc, commands, openstack=true)
|
||||||
end
|
end
|
||||||
|
|
||||||
# use the correct environment depending on platform
|
# use the correct environment depending on platform
|
||||||
if File.exist?('/etc/lsb-release')
|
if File.exist?('/usr/bin/apt-get')
|
||||||
@platform = 'ubuntu14'
|
@platform = 'ubuntu14'
|
||||||
elsif File.exist?('/etc/redhat-release')
|
elsif File.exist?('/usr/bin/yum')
|
||||||
@platform = 'centos7'
|
@platform = 'centos7'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue