Update tzworld at runtime

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-10-18 16:05:45 +02:00
parent 312e71d3ec
commit 0792bf5445
6 changed files with 21 additions and 12 deletions

View File

@@ -38,6 +38,10 @@ config :mobilizon, :cldr,
"sv"
]
config :tzdata, :data_dir, "/var/lib/mobilizon/tzdata"
config :tz_world, data_dir: "/var/lib/mobilizon/tz_world"
cond do
System.get_env("INSTANCE_CONFIG") &&
File.exists?("./config/#{System.get_env("INSTANCE_CONFIG")}") ->