From 9e2a117b77824a7513fa280bebb86418eb7e045c Mon Sep 17 00:00:00 2001 From: notnull Date: Thu, 2 Nov 2023 17:08:06 -0400 Subject: [PATCH] first test of hook --- docs/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/index.md b/docs/index.md index a85b840..47ff115 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,4 +2,20 @@ The goal is to test creating a git hook on serge. +# steps +Create new user on serge that belongs to www-data and git groups: + + useradd -G www-data git -M mkdocs + +Create new directory in /var/www; chown to mkdocs:www-data + + mkdir /var/www/services.anarchyplanet.org + chown mkdocs:www-data /var/www/services.anarchyplanet.org + +Create new post-receive git hook + +Gogs has a post-receive hook that seems to be active: + "/srv/git/gogs/gogs" hook --config='/srv/git/gogs/custom/conf/app.ini' post-receive + +Not sure what this does. I commented it out and replaced it to test hooks. committing now!