From: lain Date: Wed, 22 May 2019 08:28:50 +0000 (+0200) Subject: Mix: Don't start esshd application if we don't need it. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b6cf62ddeab04db6bd2695c5537c81e0fb1aecaf;p=akkoma Mix: Don't start esshd application if we don't need it. --- diff --git a/mix.exs b/mix.exs index 95c052c34..bc5b6204f 100644 --- a/mix.exs +++ b/mix.exs @@ -40,9 +40,16 @@ defmodule Pleroma.Mixfile do # # Type `mix help compile.app` for more information. def application do + extra_applications = [:logger, :runtime_tools, :comeonin, :quack] + extra_applications = if Application.get_env(:esshd, :enabled, false) do + [:esshd | extra_applications] + else + extra_applications + end + [ mod: {Pleroma.Application, []}, - extra_applications: [:logger, :runtime_tools, :comeonin, :esshd, :quack], + extra_applications: extra_applications, included_applications: [:ex_syslogger] ] end