Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ then
if [ -d usr/sbin ];
then
echo "Restoring sbin"
if [ -f usr/sbin/ros-start ];
then
changeRosDistroFile $OLD_ROSDISTRO $ROSDISTRO usr/sbin/ros-start
fi
sudo cp -r usr/sbin/. /usr/sbin
else
echo "Skipping sbin; no backup"
Expand All @@ -233,8 +237,9 @@ then

if [ -d system ];
then
echo "Restoring Systemd"
sudo cp -r system/. /etc/systemd/system
echo "Restoring ROS Systemd Unit File"
sudo cp -r system/multi-user.target.wants/ros.service /etc/systemd/system
sudo systemctl enable ros.service
else
echo "Skipping systemd; no backup"
fi
Expand Down