summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2021-01-28 14:59:59 +0000
committerAntoine Prieels <anp@odoo.com>2021-01-28 14:59:59 +0000
commit60b58322dc803dfbf734374b63f9556563a19b8f (patch)
treee4666068ad79077ec11809d2a06c9b6ec7d338c5
parentca6cc2674e1795a5954495d1725cd86a7db8f964 (diff)
[FIX] point_of_sale: IoT Box modules list on a single line
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#65226 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
-rwxr-xr-xaddons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo2
1 files changed, 1 insertions, 1 deletions
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