[Wargame VODs] Fixes cron job
This commit is contained in:
@@ -47,12 +47,18 @@
|
|||||||
example = "/var/run/docker.sock";
|
example = "/var/run/docker.sock";
|
||||||
description = "Path to the container management deamon's socket";
|
description = "Path to the container management deamon's socket";
|
||||||
};
|
};
|
||||||
container-bin = mkOption {
|
container-pkg = mkOption {
|
||||||
type = with types; uniq package;
|
type = with types; uniq package;
|
||||||
default = pkgs.docker;
|
default = pkgs.docker;
|
||||||
example = "pkgs.docker";
|
example = "pkgs.docker";
|
||||||
description = "The package used to interact with the container system";
|
description = "The package used to interact with the container system";
|
||||||
};
|
};
|
||||||
|
container-bin = mkOption {
|
||||||
|
type = with types; uniq str;
|
||||||
|
default = "${pkgs.docker}/bin/docker";
|
||||||
|
example = "${pkgs.docker}/bin/docker";
|
||||||
|
description = "The path to the binary used to interact with the container system";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@@ -63,7 +69,8 @@
|
|||||||
# };
|
# };
|
||||||
local = {
|
local = {
|
||||||
container-backend = "podman";
|
container-backend = "podman";
|
||||||
container-bin = pkgs.podman;
|
container-pkg = pkgs.podman;
|
||||||
|
container-bin = "${pkgs.podman}/bin/podman";
|
||||||
container-socket = "/var/run/podman/podman.sock";
|
container-socket = "/var/run/podman/podman.sock";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ in
|
|||||||
description = "Hourly wargame-vods import";
|
description = "Hourly wargame-vods import";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${config.local.container-bin}/bin/docker exec wargame-vods /proc/1/exe sync";
|
ExecStart = "${config.local.container-bin} exec wargame-vods /proc/1/exe sync";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user