Commit da872c20 authored by Stephane Crozat's avatar Stephane Crozat

paramétrage du script db_init avec le mot de passe de la base

parent c3e66a37
......@@ -2,7 +2,7 @@
SQL=`dirname $0`
psql -c "DROP DATABASE IF EXISTS apisub"
psql -c "DROP USER IF EXISTS apisub"
psql -c "CREATE USER apisub WITH ENCRYPTED PASSWORD 'password'"
psql -c "CREATE USER apisub WITH ENCRYPTED PASSWORD '$1'"
psql -c "CREATE DATABASE apisub WITH OWNER apisub"
psql -d apisub -f "$SQL/apisub_functions.sql"
psql -d apisub -f "$SQL/apisub_admin.sql"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment