suggestion
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 23 Mar 2021 14:27:02 +0000 (17:27 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 23 Mar 2021 14:27:02 +0000 (17:27 +0300)
lib/mix/tasks/pleroma/config.ex

index ac89702ae2e1d005d7b484a9b4d91be78f2f8dd5..22502a522a332a0df28e55ec947ca559cfe0d3be 100644 (file)
@@ -282,7 +282,7 @@ defmodule Mix.Tasks.Pleroma.Config do
     else
       _ ->
         shell_error("Impossible to save settings to this directory #{Path.dirname(config_path)}")
-        tmp_config_path = Path.join("/tmp", filename)
+        tmp_config_path = Path.join(System.tmp_dir!(), filename)
         file = File.open!(tmp_config_path)
 
         shell_info(