From 4e823affb9d23b780b590042faf915ff16fbea63 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Thu, 25 Nov 2021 08:45:58 +0000 Subject: [PATCH] [FIX] point_of_sale: Add DNS server in the IoT Currently the resolv.conf file saved when building the image is not applied because the file is rewritten on each startup. This commit modifies the name of the file so that the nameservers are added when starting up when generating the resolv.conf file We remove the domain localdomain because it is useless in this situation. Now with this list of DNS servers, they allow other DNS server to be used if the local DNS server does not resolve the domain. closes odoo/odoo#80475 X-original-commit: 25c3cb0aea3b001d84a5e33dc0e52cfd8fbf6456 Signed-off-by: Masereel Pierre --- .../overwrite_after_init/etc/{resolv.conf => resolv.conf.tail} | 1 - .../tools/posbox/overwrite_before_init/etc/init_posbox_image.sh | 1 - 2 files changed, 2 deletions(-) rename addons/point_of_sale/tools/posbox/overwrite_after_init/etc/{resolv.conf => resolv.conf.tail} (79%) diff --git a/addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf b/addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf.tail similarity index 79% rename from addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf rename to addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf.tail index eb9349163a8..37125434f53 100644 --- a/addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf +++ b/addons/point_of_sale/tools/posbox/overwrite_after_init/etc/resolv.conf.tail @@ -1,5 +1,4 @@ # Edited by Odoo -domain localdomain nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 1.1.1.1 diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh index cb0b5845885..f28ba2e879f 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh @@ -10,7 +10,6 @@ __base="$(basename ${__file} .sh)" # Recommends: antiword, graphviz, ghostscript, python-gevent, poppler-utils export DEBIAN_FRONTEND=noninteractive -echo "nameserver 8.8.8.8" >> /etc/resolv.conf # set locale to en_US echo "set locale to en_US"