Add an action to update jails automatically.
All checks were successful
build-poudboot Build build-poudboot has succeeded
format Build format has succeeded
rust-clippy Build rust-clippy has succeeded
rust-test Build rust-test has succeeded

I probably will only use this for end-user systems like a laptop but not for servers so I can pick when I need to reboot my servers.
This commit is contained in:
Tom Alexander
2024-05-07 08:54:14 -04:00
parent 66823059b4
commit 5b8880252b
7 changed files with 94 additions and 1 deletions

View File

@@ -5,6 +5,13 @@ CREATE TABLE IF NOT EXISTS global_action (
next_run INTEGER DEFAULT 0 NOT NULL
);
CREATE TABLE IF NOT EXISTS jail_action (
name TEXT NOT NULL,
jail_name TEXT NOT NULL,
next_run INTEGER DEFAULT 0 NOT NULL,
PRIMARY KEY (name, jail_name)
);
CREATE TABLE IF NOT EXISTS local_action (
name TEXT NOT NULL,
jail_name TEXT NOT NULL,