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:
-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:"