Skip to content
Snippets Groups Projects
Commit 41b0edf7 authored by lejeune quentin's avatar lejeune quentin
Browse files

[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#133986

Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
parent c98c9e7c
Branches
Tags
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment