1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2253: sunstone vnc proxy can't find it's lock file correctly

This commit is contained in:
Daniel Molina 2013-08-02 20:38:50 +02:00
parent a424e92886
commit 4d942f7a87

View File

@ -22,6 +22,13 @@ require 'rubygems'
require 'json'
require 'opennebula'
if !ONE_LOCATION
NOVNC_LOCK_FILE = "/var/lock/one/.novnc.lock"
else
NOVNC_LOCK_FILE= ONE_LOCATION + "/var/.novnc.lock"
end
TOKEN_EXPIRE_SECONDS = 4
VNC_STATES = [
@ -75,7 +82,7 @@ class OpenNebulaVNC
@wss = config[:vnc_proxy_support_wss]
@lock_file = config[:lock_file] || '/tmp/novnc.lock'
@lock_file = NOVNC_LOCK_FILE
if (@wss == "yes") || (@wss == "only") || (@wss == true)
@enable_wss = true