مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-03-03 14:24:06 +00:00
fix: always obey POSTAL_CONFIG_ROOT
هذا الالتزام موجود في:
@@ -34,10 +34,10 @@ module Postal
|
|||||||
|
|
||||||
def self.config_root
|
def self.config_root
|
||||||
@config_root ||= begin
|
@config_root ||= begin
|
||||||
if __FILE__ =~ /\A\/opt\/postal/
|
if ENV['POSTAL_CONFIG_ROOT']
|
||||||
Pathname.new("/opt/postal/config")
|
|
||||||
elsif ENV['POSTAL_CONFIG_ROOT']
|
|
||||||
Pathname.new(ENV['POSTAL_CONFIG_ROOT'])
|
Pathname.new(ENV['POSTAL_CONFIG_ROOT'])
|
||||||
|
elsif __FILE__ =~ /\A\/opt\/postal/
|
||||||
|
Pathname.new("/opt/postal/config")
|
||||||
else
|
else
|
||||||
Pathname.new(File.expand_path("../../../config", __FILE__))
|
Pathname.new(File.expand_path("../../../config", __FILE__))
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم