summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJason D. McCormick <jason@mfamily.org>2023-12-20 20:33:15 -0500
committerJason D. McCormick <jason@mfamily.org>2023-12-20 20:33:15 -0500
commite61b0919164053482dacea248f1b0e21129ed9b6 (patch)
tree65ea916c59ef537065b5ebaee39c65fa9e261937 /doc
parent276c4c4e85741f8cbf17677abf5704d2c9d486bb (diff)
add crons
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile13
-rw-r--r--doc/ddns-update-rfc2136.cron3
-rw-r--r--doc/mf-backup.cron1
3 files changed, 17 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..57e12f1
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,13 @@
+prefix ?= /usr
+docdir ?= $(prefix)/share/doc/mfamily-scripts
+
+DOC_FILES = $(filter-out Makefile, $(wildcard *))
+DOC_INSTALLABLES = $(patsubst %, $(DESTDIR)$(docdir)/%, $(DOC_FILES))
+
+INSTALLABLES = $(DOC_INSTALLABLES)
+
+.PHONY: install
+install: $(INSTALLABLES)
+
+$(DESTDIR)$(docdir)/%: %
+ install -D -m 0644 $< $@
diff --git a/doc/ddns-update-rfc2136.cron b/doc/ddns-update-rfc2136.cron
new file mode 100644
index 0000000..6412e6d
--- /dev/null
+++ b/doc/ddns-update-rfc2136.cron
@@ -0,0 +1,3 @@
+#!/usr/bin/bash
+/usr/bin/ddns-update-rfc2136 enp1s0 copper.mfamily.org mfamily.org 172.17.16.16
+/usr/bin/ddns-update-rfc2136 enp1s0 ros-copper.mfamily.org mfamily.org 172.17.16.16
diff --git a/doc/mf-backup.cron b/doc/mf-backup.cron
new file mode 100644
index 0000000..448497a
--- /dev/null
+++ b/doc/mf-backup.cron
@@ -0,0 +1 @@
+5 3 * * * root /usr/bin/mf-backup