clearpathrobotics / robot_upstart

ROS package of helper functions related to bringing up roslaunch on system startup.
BSD 3-Clause "New" or "Revised" License
196 stars 96 forks source link

Wrong initial value in /usr/sbin/foo-start not corrected in subsequent installation #55

Open 130s opened 7 years ago

130s commented 7 years ago

Found in /usr/sbin/foo-start script, I had to manually change:

# Punch it.
-export ROS_HOME=$(echo ~wronguser)/.ros
+export ROS_HOME=$(echo ~rightuser)/.ros

When I first ran rosrun robot_upstart install foo/launch/upstart.launch, indeed something was wrong so I understand the upstart could use wronguser. But after running the same command multiple times on the right environment, the above wasn't fixed/overwritten.

Is it intended behavior?

(I did run rosrun robot_upstart uninstall %job_name% later but don't remember if it fixed this.)