services.gitolite: Add RequiresMountsFor unit option ...

... to ensure that the filesystem where `dataDir` resides is mounted when we do initialization or upgrade.
This commit is contained in:
pvgoran 2017-09-12 02:03:51 +07:00 committed by GitHub
parent bdb120c21e
commit 4c4f73c0eb

View File

@ -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";