nixos/gollum: replace preStart with ExecStartPre
This commit is contained in:
@@ -138,17 +138,13 @@ in
|
||||
description = "Gollum wiki";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.git ];
|
||||
|
||||
preStart = ''
|
||||
# This is safe to be run on an existing repo
|
||||
git init ${cfg.stateDir}
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
WorkingDirectory = cfg.stateDir;
|
||||
# This is safe to be run on an existing repo
|
||||
ExecStartPre = "${lib.getExe pkgs.git} init ${cfg.stateDir}";
|
||||
ExecStart = ''
|
||||
${cfg.package}/bin/gollum \
|
||||
--port ${toString cfg.port} \
|
||||
|
||||
Reference in New Issue
Block a user