From c9f742817b2e3284694917b61bac0a40cdf84758 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 4 Aug 2021 16:52:17 +0100 Subject: [PATCH] Wrapper script for regenerating everything. --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..17bac5c --- /dev/null +++ b/update.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +doas mv /etc/dhcpd.conf /etc/dhcpd.conf.old +doas sh -c './netbox-dhcp.sh > /etc/dhcpd.conf' +diff -u /etc/dhcpd.conf.old /etc/dhcpd.conf +doas rcctl restart dhcpd +doas ./netbox-dns.sh +doas rcctl restart unbound