Correct the psql command
authorrinpatch <rinpatch@sdf.org>
Fri, 21 Jun 2019 23:09:45 +0000 (02:09 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 21 Jun 2019 23:09:45 +0000 (02:09 +0300)
docs/installation/releases_en.md

index c682a8d6110df468b63297d9956c2e3d47b12e68..10d8879afecafb8fceb6410c8388d4ccd21f6463 100644 (file)
@@ -107,7 +107,7 @@ chown -R pleroma /etc/pleroma
 su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql"
 
 # Create the postgres database
-psql -U postgres -d postgres -f /tmp/setup_db.psql
+su postgres -s $SHELL -lc "psql -f /tmp/setup_db.psql"
 
 # If you have installed RUM indexes add
 # `config :pleroma, :database, rum_enabled: true`