File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22set -e
33
44if ! PGPASSWORD=$DB_PASSWORD psql -lqtA -h db -U $DB_USER | grep -q " ^$DB_NAME |" ; then
5- PGPASSWORD=$DB_PASSWORD createdb -h db -U $DB_USER $DB_NAME
5+ PGPASSWORD=$DB_PASSWORD createdb -h db -U $DB_USER -O $DB_USER $DB_NAME
66fi
77
88BASEDIR=$( dirname $0 )
Original file line number Diff line number Diff line change 2626
2727DB_NAME_TEST=${DB_NAME} _test
2828
29- PGPASSWORD=$DB_PASSWORD createdb -h db -U $DB_USER ${DB_NAME_TEST}
29+ PGPASSWORD=$DB_PASSWORD createdb -h db -U $DB_USER -O $DB_USER ${DB_NAME_TEST}
3030${ODOO_DIR} /odoo.py --stop-after-init --workers=0 --database $DB_NAME_TEST --log-level=warn -i ${LOCAL_ADDONS}
3131${ODOO_DIR} /odoo.py --stop-after-init --workers=0 --database $DB_NAME_TEST --test-enable -u ${LOCAL_ADDONS}
3232PGPASSWORD=$DB_PASSWORD dropdb -h db -U $DB_USER ${DB_NAME_TEST}
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ Unreleased
2727
2828**Bugfixes **
2929
30+ * Make the database user own the created database
31+
3032**Libraries **
3133
3234* Upgrade requests to 2.6.0 (same version defined in odoo's requirements.txt)
You can’t perform that action at this time.
0 commit comments