From 638291128c2d4674ea65513d544c682c3559ca96 Mon Sep 17 00:00:00 2001 From: Antoine Prieels Date: Thu, 28 Jan 2021 14:59:59 +0000 Subject: [PATCH] [FIX] point_of_sale: IoT Box modules list on a single line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, the `ls` command has a width limit. Everything after this limit will be split on a second line. This happened when listing the modules present on the Iot Box in v12. The list of modules was split accross two lines, the modules on the second line were then not loaded when starting the Odoo service. closes odoo/odoo#65259 X-original-commit: 60b58322dc803dfbf734374b63f9556563a19b8f Signed-off-by: Quentin Lejeune (qle) Signed-off-by: Antoine Prieƫls --- .../tools/posbox/overwrite_before_init/etc/init.d/odoo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo index 3fb1ddc45df..8c698d102dd 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo @@ -20,7 +20,7 @@ DESC=odoo CONFIG=/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/odoo.conf LOGFILE=/var/log/odoo/odoo-server.log PIDFILE=/var/run/${NAME}.pid -MODULES=$(ls /home/pi/odoo/addons/ -m | tr -d ' ') +MODULES=$(ls /home/pi/odoo/addons/ -m -w0 | tr -d ' ') USER=pi test -x $DAEMON || exit 0