Skip to content

Commit 606cdaa

Browse files
authored
Merge pull request #715 from benurb/patch-1
Add explanation of git wrapper script
2 parents 4267ec6 + 1fe4519 commit 606cdaa

File tree

1 file changed

+2
-0
lines changed
  • src/modules/octopi/filesystem/home/root/bin

1 file changed

+2
-0
lines changed

src/modules/octopi/filesystem/home/root/bin/git

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
if [ "$(id -u)" == "0" ]
44
then
55
echo "Please do not run git as root, your regular user account is enough :)"
6+
echo "The rationale behind this restriction is to prevent cloning the OctoPrint"
7+
echo "repository as root, which will most likely break some functionality."
68
echo
79
echo "If you need to run git with root rights for some other application than"
810
echo "what comes preinstalled on this image you can remove this sanity check:"

0 commit comments

Comments
 (0)