As we do not really generate ejabbred.cfg, allow at least overwriting it manually
svn path=/nixos/trunk/; revision=15006
This commit is contained in:
parent
bec0e32034
commit
49bd768f99
|
@ -259,6 +259,7 @@ import ../helpers/make-etc.nix {
|
|||
"kde"
|
||||
"cups"
|
||||
"ftp"
|
||||
"ejabberd"
|
||||
"common"
|
||||
"common-console" # shared stuff for interactive local sessions
|
||||
]
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
auth include common
|
||||
account include common
|
||||
password include common
|
||||
session include common
|
|
@ -24,7 +24,7 @@ in
|
|||
fi
|
||||
|
||||
mkdir -p ${cfg.confDir}
|
||||
sed -e 's|{hosts, \["localhost"\]}.|{hosts, \[${cfg.virtualHosts}\]}.|' ${pkgs.ejabberd}/etc/ejabberd/ejabberd.cfg > ${cfg.confDir}/ejabberd.cfg
|
||||
test -f ${cfg.confDir}/ejabberd.cfg || sed -e 's|{hosts, \["localhost"\]}.|{hosts, \[${cfg.virtualHosts}\]}.|' ${pkgs.ejabberd}/etc/ejabberd/ejabberd.cfg > ${cfg.confDir}/ejabberd.cfg
|
||||
end script
|
||||
|
||||
respawn ${pkgs.bash}/bin/sh -c 'export PATH=$PATH:${pkgs.ejabberd}/sbin; cd ~; ejabberdctl --logs ${cfg.logsDir} --spool ${cfg.spoolDir} --config ${cfg.confDir}/ejabberd.cfg start; sleep 1d'
|
||||
|
|
Loading…
Reference in New Issue