respect settings from database in mix tasks
This commit is contained in:
parent
28f822877f
commit
6252e82f85
2 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxt do
|
|||
|
||||
"""
|
||||
def run(["disallow_all"]) do
|
||||
Mix.Pleroma.start_pleroma()
|
||||
static_dir = Pleroma.Config.get([:instance, :static_dir], "instance/static/")
|
||||
|
||||
if !File.exists?(static_dir) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue