Skip to content

Commit df7e518

Browse files
pvgoranMic92
authored andcommittedSep 12, 2017
services.gitolite: Add RequiresMountsFor unit option ...
... to ensure that the filesystem where `dataDir` resides is mounted when we do initialization or upgrade. (cherry picked from commit 4c4f73c)
1 parent 30bbc80 commit df7e518

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎nixos/modules/services/misc/gitolite.nix

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ in
7070
systemd.services."gitolite-init" = {
7171
description = "Gitolite initialization";
7272
wantedBy = [ "multi-user.target" ];
73+
unitConfig.RequiresMountsFor = cfg.dataDir;
7374

7475
serviceConfig.User = "${cfg.user}";
7576
serviceConfig.Type = "oneshot";

0 commit comments

Comments
 (0)
Please sign in to comment.