Skip to content

Commit

Permalink
Only copy if the file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Sep 25, 2024
1 parent eec2305 commit 6e8a210
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e8a210

Please sign in to comment.