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:
parent
a424e92886
commit
4d942f7a87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user