M #-: fallback to python3 (#3)

This commit is contained in:
Jan Orel authored and Ruben S. Montero committed 2020-06-12 11:16:32 +02:00
1 parent b834fd62d1
commit dbadd68833
1 file changed
+4 -1
+4 -1
View File
@@ -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}" }