Skip to content

Commit

Permalink
Merge pull request #715 from benurb/patch-1
Browse files Browse the repository at this point in the history
Add explanation of git wrapper script
  • Loading branch information
guysoft authored Jan 23, 2021
2 parents 4267ec6 + 1fe4519 commit 606cdaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/octopi/filesystem/home/root/bin/git
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
if [ "$(id -u)" == "0" ]
then
echo "Please do not run git as root, your regular user account is enough :)"
echo "The rationale behind this restriction is to prevent cloning the OctoPrint"
echo "repository as root, which will most likely break some functionality."
echo
echo "If you need to run git with root rights for some other application than"
echo "what comes preinstalled on this image you can remove this sanity check:"
Expand Down

0 comments on commit 606cdaa

Please sign in to comment.