erplibre/script/migrate_prod_to_test.sh

9 lines
316 B
Bash
Raw Normal View History

2021-05-13 01:03:09 -04:00
#!/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 --stop-after-init -i user_test,disable_mail_server,disable_auto_backup --dev all -d $@