Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fsr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def self.start_ies!(klass, args = {})
# This will enable sqlite db access
def self.find_freeswitch_install
good_path = FS_INSTALL_PATHS.find do |fs_path|
FSR::Log.warn("#{fs_path} is not a directory!") if File.exists?(fs_path) && !File.directory?(fs_path)
FSR::Log.warn("#{fs_path} is not readable by this user!") if File.exists?(fs_path) && !File.readable?(fs_path)
FSR::Log.warn("#{fs_path} is not a directory!") if File.exist?(fs_path) && !File.directory?(fs_path)
FSR::Log.warn("#{fs_path} is not readable by this user!") if File.exist?(fs_path) && !File.readable?(fs_path)
Dir["#{fs_path}/{conf,db}/"].size == 2 ? fs_path.to_s : nil
end
FSR::Log.warn("No FreeSWITCH install found, database and configuration functionality disabled") if good_path.nil?
Expand Down