Try moving LoadCredential to unitConfig
This commit is contained in:
parent
7385b536b7
commit
39210c0871
|
@ -70,7 +70,6 @@ in {
|
|||
serviceConfig = {
|
||||
ExecStart = "${pricebot}/bin/pricebot";
|
||||
DynamicUser = true;
|
||||
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
|
||||
PrivateTmp = true;
|
||||
PrivateDevices = true;
|
||||
ProtectSystem = "strict";
|
||||
|
@ -84,6 +83,9 @@ in {
|
|||
Restart = "always";
|
||||
StandardOutput = "journal";
|
||||
};
|
||||
unitConfig = {
|
||||
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
|
||||
};
|
||||
}) cfg.monitors;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue