Fix formatting
This commit is contained in:
parent
8e70b39b2c
commit
fa8bfd7c59
1 changed files with 5 additions and 4 deletions
|
|
@ -12,16 +12,17 @@ let
|
|||
end = builtins.elemAt ports.asterisk-rtp.udp.range 1;
|
||||
};
|
||||
voicemail-sounds = pkgs.callPackage ./voicemail-sounds { };
|
||||
in {
|
||||
in
|
||||
{
|
||||
systemd.services.asterisk-voicemail-sounds = {
|
||||
wantedBy = ["asterisk.service"];
|
||||
after = ["asterisk.service"];
|
||||
wantedBy = [ "asterisk.service" ];
|
||||
after = [ "asterisk.service" ];
|
||||
script = ''
|
||||
ln -sfn \
|
||||
${voicemail-sounds}/unavail.wav \
|
||||
/var/spool/asterisk/voicemail/lechner/876/unavail.wav
|
||||
'';
|
||||
restartTriggers = [voicemail-sounds];
|
||||
restartTriggers = [ voicemail-sounds ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue