From 08c2990a53498d18d9a98849549df9eae792c86a Mon Sep 17 00:00:00 2001 From: rulingcom Date: Sat, 1 Jul 2023 10:39:15 +0800 Subject: [PATCH] fix error --- app/controllers/admin/box_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/box_controller.rb b/app/controllers/admin/box_controller.rb index 4f913fe..52aa99a 100644 --- a/app/controllers/admin/box_controller.rb +++ b/app/controllers/admin/box_controller.rb @@ -2,14 +2,14 @@ class Admin::BoxController < OrbitAdminController include ReverseProxy::Controller SocketFile = "#{Rails.root}/tmp/box.sock" Binary = File.expand_path("../../../../bin/box", __FILE__) - CSSFile = File.expand_path("../../../../white-on-black.css", __FILE__) + CSSFile = File.expand_path("../../../white-on-black.css", __FILE__) skip_before_filter :verify_authenticity_token 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? Thread.new do - `#{Binary} --unixdomain-only #{SocketFile}:$USER:$USER:0666 --disable-ssl --css #{CSSFile}` + `#{Binary} --unixdomain-only #{SocketFile}:$USER:$USER:0666 --disable-ssl --debug --css #{CSSFile}` end sleep 3 end