From 102f488b39decd293366faf2b4233bb863c74fc9 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 1 Sep 2020 17:41:06 +0100 Subject: [PATCH] add update-notifier --- user/update-notifier.service | 9 +++++++++ user/update-notifier.timer | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 user/update-notifier.service create mode 100644 user/update-notifier.timer diff --git a/user/update-notifier.service b/user/update-notifier.service new file mode 100644 index 0000000..bc4445f --- /dev/null +++ b/user/update-notifier.service @@ -0,0 +1,9 @@ +[Unit] +Description=Notify when updates are available + +[Service] +ExecStart=/usr/local/bin/notify-updates -n + +[Install] +WantedBy=default.target + diff --git a/user/update-notifier.timer b/user/update-notifier.timer new file mode 100644 index 0000000..eac775a --- /dev/null +++ b/user/update-notifier.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Periodically run update-notifier + +[Timer] +OnCalendar=*-*-* 14:00:00 + +[Install] +WantedBy=timers.target