Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Urban <github@bennis-server.de>2021-01-23 21:56:00 +0300
committerGitHub <noreply@github.com>2021-01-23 21:56:00 +0300
commit1fe451932a5783c00274bf48348991a6a39dc2d1 (patch)
tree565cdddfc7e9fcb084316f368a6194a4160d4d02
parent4267ec6f07776d07829c1abc90c2dee606162208 (diff)
Add explanation of git wrapper script
-rw-r--r--src/modules/octopi/filesystem/home/root/bin/git2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/octopi/filesystem/home/root/bin/git b/src/modules/octopi/filesystem/home/root/bin/git
index 39a0e07..4e8a986 100644
--- a/src/modules/octopi/filesystem/home/root/bin/git
+++ b/src/modules/octopi/filesystem/home/root/bin/git
@@ -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:"