2020-04-13 00:06:13 -04:00
|
|
|
#!/usr/bin/env bash
|
2020-07-24 02:20:30 -04:00
|
|
|
source ./.venv/bin/activate
|
2021-07-01 00:52:15 -04:00
|
|
|
|
|
|
|
|
CONFIG_PATH="./config.conf"
|
|
|
|
|
ORIGIN_CONFIG_PATH=CONFIG_PATH
|
|
|
|
|
if [ ! -f "${CONFIG_PATH}" ]; then
|
|
|
|
|
CONFIG_PATH="/etc/odoo/odoo.conf"
|
|
|
|
|
if [ ! -f "${CONFIG_PATH}" ]; then
|
|
|
|
|
echo "Cannot find ERPLibre configuration ${ORIGIN_CONFIG_PATH}, did you install ERPLibre? > make install"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
2023-02-25 23:52:05 -05:00
|
|
|
python3 ./odoo/odoo-bin -c ${CONFIG_PATH} --limit-time-real 99999 --limit-time-cpu 99999 --limit-memory-hard=0 "$@"
|
2023-04-09 22:23:21 -04:00
|
|
|
# When need more memory RAM for instance by force
|
|
|
|
|
#python3 ./odoo/odoo-bin -c ${CONFIG_PATH} --limit-time-real 99999 --limit-time-cpu 99999 --limit-memory-soft=8589934592 --limit-memory-hard=10737418240 $@
|
|
|
|
|
|
2021-06-27 00:22:22 -04:00
|
|
|
retVal=$?
|
|
|
|
|
if [[ $retVal -ne 0 ]]; then
|
2021-07-01 00:52:15 -04:00
|
|
|
echo "Error run.sh"
|
|
|
|
|
exit 1
|
2021-06-27 00:22:22 -04:00
|
|
|
fi
|