1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

fix: always obey POSTAL_CONFIG_ROOT

هذا الالتزام موجود في:
Adam Cooke
2021-07-26 11:21:26 +00:00
الأصل e2409a663c
التزام 1d22ca0f85

عرض الملف

@@ -34,10 +34,10 @@ module Postal
def self.config_root
@config_root ||= begin
if __FILE__ =~ /\A\/opt\/postal/
Pathname.new("/opt/postal/config")
elsif ENV['POSTAL_CONFIG_ROOT']
if ENV['POSTAL_CONFIG_ROOT']
Pathname.new(ENV['POSTAL_CONFIG_ROOT'])
elsif __FILE__ =~ /\A\/opt\/postal/
Pathname.new("/opt/postal/config")
else
Pathname.new(File.expand_path("../../../config", __FILE__))
end