Skip to content

Commit

Permalink
services.gitolite: Add RequiresMountsFor unit option ...
Browse files Browse the repository at this point in the history
... to ensure that the filesystem where `dataDir` resides is mounted when we do initialization or upgrade.

(cherry picked from commit 4c4f73c)
  • Loading branch information
pvgoran authored and Mic92 committed Sep 12, 2017
1 parent 6d75305 commit 898924e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/misc/gitolite.nix
Expand Up @@ -70,6 +70,7 @@ in
systemd.services."gitolite-init" = {
description = "Gitolite initialization";
wantedBy = [ "multi-user.target" ];
unitConfig.RequiresMountsFor = cfg.dataDir;

serviceConfig.User = "${cfg.user}";
serviceConfig.Type = "oneshot";
Expand Down

0 comments on commit 898924e

Please sign in to comment.