mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
fix(radio): dont fail when cropping playlist non possible pre-start
This commit is contained in:
@@ -187,7 +187,7 @@ in
|
|||||||
MPD_HOST = "127.0.0.1";
|
MPD_HOST = "127.0.0.1";
|
||||||
};
|
};
|
||||||
serviceConfig.User = config.users.extraUsers.radio.name;
|
serviceConfig.User = config.users.extraUsers.radio.name;
|
||||||
preStart = "${pkgs.mpc_cli}/bin/mpc crop";
|
preStart = "${pkgs.mpc_cli}/bin/mpc crop || :";
|
||||||
script = ''
|
script = ''
|
||||||
set -efu
|
set -efu
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ in
|
|||||||
after = [ "container@lyrik.service" ];
|
after = [ "container@lyrik.service" ];
|
||||||
wantedBy = [ "container@lyrik.service" ];
|
wantedBy = [ "container@lyrik.service" ];
|
||||||
environment.MPD_PORT = toString lyrik.mpdPort;
|
environment.MPD_PORT = toString lyrik.mpdPort;
|
||||||
preStart = "${pkgs.mpc_cli}/bin/mpc crop";
|
preStart = "${pkgs.mpc_cli}/bin/mpc crop || :";
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
serviceConfig.User = config.users.extraUsers.radio.name;
|
serviceConfig.User = config.users.extraUsers.radio.name;
|
||||||
script =
|
script =
|
||||||
@@ -243,7 +243,7 @@ in
|
|||||||
startAt = "*:00/10";
|
startAt = "*:00/10";
|
||||||
environment.MPD_PORT = toString meddl.mpdPort;
|
environment.MPD_PORT = toString meddl.mpdPort;
|
||||||
serviceConfig.User = config.users.extraUsers.radio.name;
|
serviceConfig.User = config.users.extraUsers.radio.name;
|
||||||
preStart = "${pkgs.mpc_cli}/bin/mpc crop";
|
preStart = "${pkgs.mpc_cli}/bin/mpc crop || :";
|
||||||
script = ''
|
script = ''
|
||||||
set -efu
|
set -efu
|
||||||
host=http://antenne-asb.ga
|
host=http://antenne-asb.ga
|
||||||
|
|||||||
Reference in New Issue
Block a user