Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $HOME rather than /home/pi #4152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zandr
Copy link

@zandr zandr commented Feb 20, 2024

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.

@metril
Copy link

metril commented Jul 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants