From 1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 13 Mar 2023 10:33:12 -0300 Subject: git-post-receive.sh: Derive $LOGS_DIR from repository directory name --- src/infrastructure/ci/git-post-receive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/infrastructure/ci/git-post-receive.sh b/src/infrastructure/ci/git-post-receive.sh index ab8c9d5..bd21478 100755 --- a/src/infrastructure/ci/git-post-receive.sh +++ b/src/infrastructure/ci/git-post-receive.sh @@ -41,7 +41,7 @@ now() { date '+%Y-%m-%dT%H:%M:%S%:z' } -LOGS_DIR=/var/log/ci/servers/ +LOGS_DIR=/var/log/ci/"$(basename "$PWD" .git)"/ TIMESTAMP="$(now)" FILENAME="$TIMESTAMP-$SHA.log" LOGFILE="$LOGS_DIR/$FILENAME" -- cgit v1.2.3