~fkooman/www.tuxed.net

3e59cec797bcdc29a9c98e23f6cf7e875cf0cca4 — François Kooman 1 year, 10 months ago 661fd8f
update git post
1 files changed, 8 insertions(+), 3 deletions(-)

M posts/git_server_centos.md
M posts/git_server_centos.md => posts/git_server_centos.md +8 -3
@@ 1,7 1,7 @@
---
title: Running a Git server on CentOS
published: 2018-05-24
modified: 2019-04-11 (CentOS now has Python 3.6 in EPEL)
modified: 2019-07-22
---

This should really be easier. I guess that is why so many software exists to 


@@ 50,8 50,7 @@ Add `git-shell` to list of shells:

Add system user `git`, but leave the default shell for now:

    $ sudo adduser git -r -d /var/lib/git
    $ sudo chown git.git /var/lib/git
    $ sudo adduser git -m -r -d /var/lib/git

We'll switch to the `git` user to perform the following steps:



@@ 151,3 150,9 @@ If you are playing with the configuration options, you may need to remove the
cache as cgit will cache the output it sends to the browser:

    $ sudo rm -f /var/cache/cgit/*

### Updates

* **2019-07-22**: `adduser` also takes the `-m` parameter to create the 
  home directory
* **2019-04-11**: CentOS now has Python 3.6 in EPEL