Quellcode durchsuchen

Encapsulate the SQL command in a unix command

DricomDragon vor 5 Jahren
Ursprung
Commit
f9cfc98ccb
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      README.md

+ 3 - 1
README.md

@@ -41,7 +41,9 @@ Start service :
 
 #### Create python user
 
-`CREATE USER python_app WITH NOCREATEDB NOCREATEROLE NOSUPERUSER PASSWORD 'blablapoivron';`
+Create owner of the _logistics_ database.
+
+`sudo -u postgres psql -c "CREATE USER python_app WITH NOCREATEDB NOCREATEROLE NOSUPERUSER PASSWORD 'blablapoivron';"`
 
 #### Create the database