summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron-daily4
-rw-r--r--dashboard-daily.service6
-rw-r--r--dashboard-daily.timer9
3 files changed, 19 insertions, 0 deletions
diff --git a/cron-daily b/cron-daily
new file mode 100755
index 0000000..ecc5266
--- /dev/null
+++ b/cron-daily
@@ -0,0 +1,4 @@
+#!/bin/sh
+cd "$(dirname -- "$0")"
+date > NET-crt.sh
+make
diff --git a/dashboard-daily.service b/dashboard-daily.service
new file mode 100644
index 0000000..bafdbdd
--- /dev/null
+++ b/dashboard-daily.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Dashboard daily update
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c '~/dashboard/cron-daily'
diff --git a/dashboard-daily.timer b/dashboard-daily.timer
new file mode 100644
index 0000000..de7df23
--- /dev/null
+++ b/dashboard-daily.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Dashboard daily update
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+
+[Install]
+WantedBy=timers.target