From 6e8a21057c0074576268c2efc6135f0f53124745 Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Wed, 25 Sep 2024 16:31:28 -0400 Subject: [PATCH] Only copy if the file exists --- debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 2693332..75ca99b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,7 +2,9 @@ PKG="turtlebot4_setup" -sudo cp /etc/turtlebot4/chrony.conf /etc/chrony/chrony.conf +if [ -f /etc/turtlebot4/chrony.conf ]; then + sudo cp /etc/turtlebot4/chrony.conf /etc/chrony/chrony.conf +fi sudo service chrony restart sudo systemctl enable webserver.service sudo systemctl disable systemd-networkd-wait-online.service