dns fixes
authorIan Kelling <ian@iankelling.org>
Fri, 18 Oct 2019 22:58:12 +0000 (18:58 -0400)
committerIan Kelling <ian@iankelling.org>
Fri, 18 Oct 2019 22:58:12 +0000 (18:58 -0400)
Makefile
machine_specific/linode/filesystem/var/lib/bind/db.b8.nz [deleted file]
mail-setup

index 6050ebec5ff9eadd6354cd94e11293fd54c16eea..2d066dc957cc37adda4266a9e856690e6c0d013f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,5 +3,5 @@ all: ~/.local/distro-begin ~/.local/distro-end
 ~/.local/distro-begin: distro-begin
        distro-begin mail-setup
 
-~/.local/distro-end: distro-end distro-pkgs pkgs
+~/.local/distro-end: distro-end distro-pkgs pkgs primary-setup
        distro-end
diff --git a/machine_specific/linode/filesystem/var/lib/bind/db.b8.nz b/machine_specific/linode/filesystem/var/lib/bind/db.b8.nz
deleted file mode 100644 (file)
index fa2298d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-$ORIGIN .
-$TTL 60        ; 1 minute
-b8.nz                  IN SOA  b8.nz. admin.b8.nz. (
-                               25         ; serial
-                               604800     ; refresh (1 week)
-                               86400      ; retry (1 day)
-                               2419200    ; expire (4 weeks)
-                               60         ; minimum (1 minute)
-                               )
-                       NS      n1.iankelling.org.
-                       NS      n2.iankelling.org.
-                       A       73.249.108.7
index a8692ef23d53ce75e8c7a53361d0615d1a08c67b..b28bedf004b895d497ccb3c98c2f61f602947fab 100755 (executable)
@@ -168,7 +168,7 @@ smarthost="$mxhost::$mxport"
 
 ## * Install packages
 # light version of exim does not have sasl auth support.
-pi exim4-daemon-heavy spamassassin spf-tools-perl openvpn dnsmasq
+pi exim4-daemon-heavy spamassassin spf-tools-perl openvpn
 
 # trisquel 8 = openvpn, debian stretch = openvpn-client
 vpn_ser=openvpn-client
@@ -624,7 +624,9 @@ EOF
   /a/exe/cedit mail /etc/dnsmasq-servers.conf <<'EOF' || [[ $? == 1 ]]
 server=/mail.iankelling.org/127.0.1.1
 EOF
-  systemctl reload dnsmasq
+  if systemctl is-active dnsmasq >/dev/null; then
+    systemctl reload dnsmasq
+  fi
 
   # I used to use debconf-set-selections + dpkg-reconfigure,
   # which then updates this file