[FIX] install locally multiple workers when proxy_mode is enable

This commit is contained in:
Mathieu Benoit 2021-07-20 17:34:10 -04:00
parent d3366239c9
commit 8974735f64

View file

@ -160,13 +160,15 @@ if [[ ${EL_MINIMAL_ADDONS} = "False" ]]; then
fi
printf "\n" >> ${EL_CONFIG_FILE}
printf "workers = 0\n" >> ${EL_CONFIG_FILE}
printf "max_cron_threads = 2\n" >> ${EL_CONFIG_FILE}
if [[ ${EL_INSTALL_NGINX} = "True" ]]; then
printf "workers = 2\n" >> ${EL_CONFIG_FILE}
printf "xmlrpc_interface = 127.0.0.1\n" >> ${EL_CONFIG_FILE}
printf "netrpc_interface = 127.0.0.1\n" >> ${EL_CONFIG_FILE}
printf "proxy_mode = True\n" >> ${EL_CONFIG_FILE}
else
printf "workers = 0\n" >> ${EL_CONFIG_FILE}
fi
#echo -e "\n---- Install Odoo with addons module ----"