From 3de612e66eefae15bd99c6e90874cb317aabcc7b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 1 Jun 2021 10:51:42 +0200 Subject: fix use sudo where needed, and clarify better what is done at the server --- SETUP.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/SETUP.md b/SETUP.md index e8d51a2..f39dd5f 100644 --- a/SETUP.md +++ b/SETUP.md @@ -48,14 +48,15 @@ e.g. add these likes to add repository "foobar": ## Enable hook -**On the server**, -clone the redpill feature project for source-hosting +This is all done **On the server**. + +Clone the redpill feature project for source-hosting and register with myrepos (to ease later update): - mkdir --parents /usr/local/share/redpill + sudo mkdir --parents /usr/local/share/redpill cd /usr/local/share/redpill - git clone https://source.redpill.dk/source-hosting.git - mr reg + sudo git clone https://source.redpill.dk/source-hosting.git + sudo mr reg Edit the file `/etc/gitolite3/gitolite.rc` to have `LOCAL_CODE` point into the project cloned above, @@ -78,7 +79,7 @@ grant access for gitolite to write below /var/www with these commands: sudo mkdir /var/www/gitolite3 - chown git:www-data /var/www/gitolite3 + sudo chown git:www-data /var/www/gitolite3 **On your local host**, edit the file gitolite.conf @@ -90,8 +91,9 @@ e.g. add these likes to add repository "foobar": ## Configure web access -**On the server**, -adapt the file `/etc/default/git-daemon`: +This is all done **On the server**. + +Adapt the file `/etc/default/git-daemon`: GIT_DAEMON_ENABLE=true GIT_DAEMON_USER=gitdaemon -- cgit v1.2.3