From bcb48f33842258f042f5f906cb67ab63bc0b4424 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Wed, 8 Jul 2020 12:54:12 +0000 Subject: [PATCH] [FIX] point_of_sale: Maintain IoT versioning compatibility with this commit ce0700ce401523267b5a8bd5665a368cfea24912 we lose the compatibility with olders version of Odoo So we keep the vesion of IoT box in the same place for olders version of Odoo closes odoo/odoo#54242 X-original-commit: 0215ff3fd7a353c4f191a1cb93fdce6d0db78fa0 Signed-off-by: Quentin Lejeune (qle) --- addons/point_of_sale/tools/posbox/posbox_create_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/tools/posbox/posbox_create_image.sh b/addons/point_of_sale/tools/posbox/posbox_create_image.sh index 84a2932d33f..4e0c5cef4ca 100755 --- a/addons/point_of_sale/tools/posbox/posbox_create_image.sh +++ b/addons/point_of_sale/tools/posbox/posbox_create_image.sh @@ -132,7 +132,7 @@ chroot "${MOUNT_POINT}" /bin/bash -c "sudo /etc/init_posbox_image.sh" # copy iotbox version mkdir -pv "${MOUNT_POINT}"/var/odoo -echo "${VERSION_IOTBOX}" > "${MOUNT_POINT}"/var/odoo/iotbox_version +echo "${VERSION_IOTBOX}" | tee "${MOUNT_POINT}"/var/odoo/iotbox_version "${MOUNT_POINT}"/home/pi/iotbox_version # get rid of the git clone rm -rfv "${CLONE_DIR}"