Prepare to support ruby 3.3.
This commit is contained in:
parent
2d0d00f8ba
commit
b301e04fac
|
@ -9,7 +9,7 @@ class Admin::BoxController < ApplicationController
|
|||
|
||||
def index
|
||||
is_not_open = `fuser #{SocketFile}`.gsub(/\n/, '').empty?
|
||||
if !File.exists?(SocketFile) || `ss -elx | grep -w "$(stat -c 'ino:%i dev:0/%d' '#{SocketFile}')"`.blank?
|
||||
if !File.exist?(SocketFile) || `ss -elx | grep -w "$(stat -c 'ino:%i dev:0/%d' '#{SocketFile}')"`.blank?
|
||||
Thread.new do
|
||||
`#{Binary} --unixdomain-only #{SocketFile}:$USER:$USER:0666 --disable-ssl --debug --css #{CSSFile}`
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module ClientManagement
|
||||
class Engine < ::Rails::Engine
|
||||
initializer "client_management" do
|
||||
Rails.application.config.to_prepare do
|
||||
OrbitApp.registration "client_management", :type => "ModuleApp" do
|
||||
module_label "client_management.client_management"
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
|
@ -9,8 +10,8 @@ module ClientManagement
|
|||
taggable "SiteServer"
|
||||
# frontend_enabled
|
||||
# data_count 1..30
|
||||
require File.expand_path('../../../app/models/server_ability', __FILE__)
|
||||
require File.expand_path('../../../app/models/plow_setting', __FILE__)
|
||||
require File.join(ClientManagement::Engine.root, 'app/models/server_ability')
|
||||
require File.join(ClientManagement::Engine.root, 'app/models/plow_setting')
|
||||
if ServerAbility.count==0
|
||||
ServerAbility.create()
|
||||
end
|
||||
|
@ -79,4 +80,5 @@ module ClientManagement
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue