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
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
12 changes: 6 additions & 6 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -695,12 +695,12 @@ echo "Installing Dependencies ..."
exit -1
}

if [ -d "/home/pi/OctoPrint/venv" ]; then
DIRECTORY="/home/pi/OctoPrint/venv"
elif [ -d "/home/pi/oprint" ]; then
DIRECTORY="/home/pi/oprint"
if [ -d "$HOME/OctoPrint/venv" ]; then
DIRECTORY="$HOME/OctoPrint/venv"
elif [ -d "$HOME/oprint" ]; then
DIRECTORY="$HOME/oprint"
else
echo "Neither /home/pi/OctoPrint/venv nor /home/pi/oprint can be found."
echo "Neither $HOME/OctoPrint/venv nor $HOME/oprint can be found."
echo "If your OctoPrint instance is running on a different machine just type - in the following prompt."
text_input "Please specify OctoPrints full virtualenv path manually (no trailing slash)." DIRECTORY
fi;
Expand Down Expand Up @@ -834,7 +834,7 @@ EOF
sudo chmod +x ~/scripts/update-octodash

sudo bash -c 'cat >> /etc/sudoers.d/update-octodash' <<EOF
pi ALL=NOPASSWD: /home/pi/scripts/update-octodash
pi ALL=NOPASSWD: $HOME/scripts/update-octodash
EOF
fi

Expand Down