Wrapper script for regenerating everything.

This commit is contained in:
2021-08-04 16:52:17 +01:00
parent 555589cb31
commit c9f742817b

8
update.sh Executable file
View File

@@ -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