[FIX] point_of_sale: Fix date on iot

With the build of the new iot image we need to fix the date synchronization

closes odoo/odoo#134138

X-original-commit: 41b0edf739f676723b9dab77066296565d6e135d
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
lejeune quentin
2023-09-04 16:09:30 +00:00
parent bca14070a6
commit a1bf178ee0
2 changed files with 42 additions and 0 deletions
@@ -0,0 +1,41 @@
#!/bin/bash
### BEGIN INIT INFO
# Provides: timesyncd
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start systemd-timesyncd daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
start()
{
echo "start timesyncd"
service systemd-timesyncd start
}
stop()
{
echo "stop timesyncd"
service systemd-timesyncd stop
}
restart()
{
stop;
sleep 1;
start;
}
case $1 in
start)
start;;
stop)
stop;;
restart)
restart;;
*)
start;;
esac
exit 0
@@ -142,6 +142,7 @@ echo "* * * * * rm /var/run/odoo/sessions/*" | crontab -
update-rc.d -f hostapd remove
update-rc.d -f nginx remove
update-rc.d -f dnsmasq remove
update-rc.d timesyncd defaults
systemctl enable ramdisks.service
systemctl enable led-status.service