fix
authorHenry Jameson <me@hjkos.com>
Mon, 27 Nov 2017 21:44:14 +0000 (00:44 +0300)
committerHenry Jameson <me@hjkos.com>
Mon, 4 Dec 2017 00:56:54 +0000 (03:56 +0300)
lib/mix/tasks/generate_config.ex

index d06cc1a848e93a38330c7210645649e2879404d5..95cf394be205d9e456a7acc0ac76ddfa3d2acd91 100644 (file)
@@ -14,7 +14,7 @@ defmodule Mix.Tasks.GenerateConfig do
     resultSql = EEx.eval_file("lib/mix/tasks/sample_psql.eex", [dbpass: dbpass])
     result = EEx.eval_file("lib/mix/tasks/sample_config.eex", [domain: domain, email: email, name: name, secret: secret, dbpass: dbpass])
     IO.puts("\nWriting config to config/dev.secret.exs and config/prod.secret.exs")
-    IO.puts("\nWriting setup_db.psql, please run it as postgre superuser, i.e. su - postgres -c 'psql -f config/setup_db.psql'")
+    IO.puts("\nWriting setup_db.psql, please run it as postgre superuser, i.e.: sudo su postgres -c 'psql -f config/setup_db.psql'")
     File.write("config/dev.secret.exs", result)
     File.write("config/prod.secret.exs", result)
     File.write("config/setup_db.psql", resultSql)