From 8b58776e9c2ad8ee5f7fd553a4650ca921e69579 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 5 Feb 2023 13:10:48 +0900 Subject: feat(colmena/services): add 'rename' & enable symbolic-ref + move raw scripts to separate directory --- colmena/cobalt/services/gitolite.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'colmena/cobalt/services/gitolite.nix') diff --git a/colmena/cobalt/services/gitolite.nix b/colmena/cobalt/services/gitolite.nix index af4c88a..94c7ac9 100644 --- a/colmena/cobalt/services/gitolite.nix +++ b/colmena/cobalt/services/gitolite.nix @@ -30,6 +30,8 @@ in # $RC{LOCAL_CODE} = '$ENV{HOME}/local'; $RC{LOCAL_CODE} = '/var/lib/gitolite/local'; push(@{$RC{ENABLE}}, 'D'); + push(@{$RC{ENABLE}}, 'symbolic-ref'); + push(@{$RC{ENABLE}}, 'rename'); push(@{$RC{POST_GIT}}, 'fix-refs'); # push(@{$RC{ENABLE}}, 'set-default-roles'); # push(@{$RC{ENABLE}}, 'create'); @@ -42,8 +44,15 @@ in "/var/lib/gitolite" ]; + system.activationScripts.gitolite-create-local = '' + mkdir -p /var/lib/gitolite/local/triggers + mkdir -p /var/lib/gitolite/local/commands + chown -R git:git /var/lib/gitolite/local + ''; + systemd.tmpfiles.rules = [ - "C /var/lib/gitolite/local/triggers/fix-refs 755 git git - ${fixRefsTrigger}" + "C /var/lib/gitolite/local/triggers/fix-refs 755 - - - ${./gitolite-noncore/fix-refs}" + "C /var/lib/gitolite/local/commands/rename 755 - - - ${./gitolite-noncore/rename}" ]; -- cgit 1.4.1