From 8503c6dfae4b381aba5869f6c54ed1bdb6c9a97d Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 29 Apr 2023 19:31:53 +0200 Subject: [PATCH] adds comments to the old git-hook files (backups) --- .backup-git-pre-push-hook | 5 +++++ .git-post-receive-hook | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.backup-git-pre-push-hook b/.backup-git-pre-push-hook index 835f24f..36881a5 100755 --- a/.backup-git-pre-push-hook +++ b/.backup-git-pre-push-hook @@ -6,6 +6,11 @@ if ! [ -f ~/.cloudflarerc ] ; then fi . ~/.cloudflarerc +# this file contains only two lines in which we declare +# $apikey and $id +# like +# apikey=J9pq1v... +# id=16e255e... echo -n "Clearing cloudflare cache..." diff --git a/.git-post-receive-hook b/.git-post-receive-hook index 90982a6..75d6ead 100644 --- a/.git-post-receive-hook +++ b/.git-post-receive-hook @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# this file was used on my server when I selfhosted my personal +# Gitea instance. I've put this as post-receive-hook on the +# servers local Gitea repository. GIT_REPO=/var/lib/gitea/data/gitea-repositories/dominic/oe7drt-website.git WORKING_DIR=${HOME}/oe7drt-website-working