Require network-online for adblock script
This commit is contained in:
@@ -61,12 +61,14 @@ in
|
|||||||
systemd = {
|
systemd = {
|
||||||
services.adblock-update = {
|
services.adblock-update = {
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
requires = [ "network-online.target" ];
|
||||||
script = lib.getExe adblockUpdate;
|
script = lib.getExe adblockUpdate;
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
};
|
};
|
||||||
timers.adblock-update = {
|
timers.adblock-update = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
requires = [ "network-online.target" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
Unit = "adblock-update.service";
|
Unit = "adblock-update.service";
|
||||||
|
|||||||
Reference in New Issue
Block a user