mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
M #-: fallback to python3 (#3)
This commit is contained in:
parent
b834fd62d1
commit
dbadd68833
@ -152,7 +152,10 @@ class OpenNebulaVNC
|
||||
proxy_options << " -6"
|
||||
end
|
||||
|
||||
cmd ="python #{@proxy_path} #{proxy_options} #{@proxy_port}"
|
||||
python = 'python3' if system("python3 -c True")
|
||||
python = 'python' if system("python -c True")
|
||||
|
||||
cmd ="#{python} #{@proxy_path} #{proxy_options} #{@proxy_port}"
|
||||
|
||||
begin
|
||||
@logger.info { "Starting VNC proxy: #{cmd}" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user