summaryrefslogtreecommitdiff
path: root/SETUP.md
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-06-01 10:51:42 +0200
committerJonas Smedegaard <dr@jones.dk>2021-06-01 10:51:42 +0200
commit3de612e66eefae15bd99c6e90874cb317aabcc7b (patch)
tree19ac22dfff940053b447643da2f44fe0fd64ab9e /SETUP.md
parent7359f7dd51f6ec149bb1a62c76b472a7763ff55c (diff)
fix use sudo where needed, and clarify better what is done at the server
Diffstat (limited to 'SETUP.md')
-rw-r--r--SETUP.md18
1 files 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