mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
M #-: fallback to python3 (#3)
This commit is contained in:
1 parent
b42717ee65
commit
f39ff7f095
1 file changed
+4
-1
@@ -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}" }
|
||||
|
||||
Reference in new issue
Block a user