From f0fd708c9dab713ec52ae3523d04e8738f02f8bc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 29 May 2019 15:40:58 +0200 Subject: conf should be processed, too --- Makefile | 1 + gitolite-sync.conf | 13 ------------- gitolite-sync.conf.in | 13 +++++++++++++ 3 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 gitolite-sync.conf create mode 100644 gitolite-sync.conf.in diff --git a/Makefile b/Makefile index ae6fbca..5ab47c0 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ MANDIR = /usr/share/man VERSION = 0.0 all: man.commons \ + gitolite-sync.conf \ gitolite-sync gitolite-sync.1 \ gitolite-sync.service gitolite-sync.timer diff --git a/gitolite-sync.conf b/gitolite-sync.conf deleted file mode 100644 index 240ec0c..0000000 --- a/gitolite-sync.conf +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# this regex must match the to-be-synchronized remotes (or their url) -remote_regex='[@.]eckner\.net:' - -# these directories contain the to-be-synchronized repositories -repository_dirs=( - $( - getent passwd #GITUSER# \ - | cut -d: -f6 \ - | sed 's,$,/repositories,' - ) -) diff --git a/gitolite-sync.conf.in b/gitolite-sync.conf.in new file mode 100644 index 0000000..240ec0c --- /dev/null +++ b/gitolite-sync.conf.in @@ -0,0 +1,13 @@ +#!/bin/bash + +# this regex must match the to-be-synchronized remotes (or their url) +remote_regex='[@.]eckner\.net:' + +# these directories contain the to-be-synchronized repositories +repository_dirs=( + $( + getent passwd #GITUSER# \ + | cut -d: -f6 \ + | sed 's,$,/repositories,' + ) +) -- cgit v1.2.3-70-g09d2