erplibre/script/database/migrate_prod_to_test.sh
Mathieu Benoit e2e7a61ad6 [UPD] when using stop-after-init, enable no-http
- in many case, no need http when run with argument stop-after-init,
because we want to execute without gui
2024-12-03 23:10:16 -05:00

8 lines
327 B
Bash
Executable file

#!/usr/bin/env bash
if [ $# -lt 1 ]; then
# TODO: print usage
echo "Missing database name"
exit 1
fi
source ./.venv/bin/activate
python3 ./odoo/odoo-bin -c ./config.conf --limit-time-real 99999 --limit-time-cpu 99999 --no-http --stop-after-init -i user_test,disable_mail_server,disable_auto_backup --dev prod -d $@