mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
errbot service: fix import config
in plugins
This commit is contained in:
parent
a2b018f55a
commit
f422afd07d
@ -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 New Issue
Block a user