OctoDash icon indicating copy to clipboard operation
OctoDash copied to clipboard

Use $HOME rather than /home/pi

Open zandr opened this issue 1 year ago • 1 comments

install.sh assumes that the old default username of pi is in use. Now that OctoPi is in the Raspberry Pi Imager, it's fairly likely that the username will be customized, and install.sh will prompt with "Neither /home/pi/OctoPrint/venv nor /home/pi/oprint can be found."

Using $HOME instead of hard-coding /home/pi fixes this.

zandr avatar Feb 20 '24 15:02 zandr

There's an issue with the changes to the script. Though you're using the $HOME for all the hardcoded paths, for the changes to the sudoers file, you're still using "pi". In the context of changing to using $HOME, this is wrong. You should also use $USER.

metril avatar Jul 30 '24 01:07 metril

Thank you both!

Due to an issue with the CI actions that was recently resolved, this PR needs a quick sync with upstream. Could you merge the latest upstream branch real quick?

queengooborg avatar Mar 16 '25 19:03 queengooborg

This has been included in #4784!

queengooborg avatar Mar 17 '25 23:03 queengooborg