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:
authorGuy Sheffer <guysoft@gmail.com>2021-01-24 02:58:58 +0300
committerGitHub <noreply@github.com>2021-01-24 02:58:58 +0300
commit606cdaafe5f6df438a28ab17a026d3ea91e31f76 (patch)
tree565cdddfc7e9fcb084316f368a6194a4160d4d02
parent4267ec6f07776d07829c1abc90c2dee606162208 (diff)
parent1fe451932a5783c00274bf48348991a6a39dc2d1 (diff)
Merge pull request #715 from benurb/patch-10.18.0master
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:"