mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
errbot service: fix import config
in plugins
This commit is contained in:
parent
a2b018f55a
commit
f422afd07d
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ let
|
|||
name = "errbot-plugins";
|
||||
paths = plugins;
|
||||
};
|
||||
mkConfigFile = instanceCfg: dataDir: pkgs.writeText "errbot-config.py" ''
|
||||
mkConfigDir = instanceCfg: dataDir: pkgs.writeTextDir "config.py" ''
|
||||
import logging
|
||||
BACKEND = '${instanceCfg.backend}'
|
||||
BOT_DATA_DIR = '${dataDir}'
|
||||
|
@ -93,7 +93,7 @@ in {
|
|||
serviceConfig = {
|
||||
User = "errbot";
|
||||
Restart = "on-failure";
|
||||
ExecStart = "${pkgs.errbot}/bin/errbot -c ${mkConfigFile instanceCfg dataDir}";
|
||||
ExecStart = "${pkgs.errbot}/bin/errbot -c ${mkConfigDir instanceCfg dataDir}/config.py";
|
||||
PermissionsStartOnly = true;
|
||||
};
|
||||
})) cfg.instances;
|
||||
|
|
Loading…
Reference in a new issue