various fixes
authorIan Kelling <ian@iankelling.org>
Fri, 11 Dec 2020 03:17:14 +0000 (22:17 -0500)
committerIan Kelling <ian@iankelling.org>
Fri, 11 Dec 2020 03:17:14 +0000 (22:17 -0500)
brc2
distro-end
mail-setup
switch-mail-host

diff --git a/brc2 b/brc2
index e392c49a90c01cbe4ba3e2ceadc7270afa96d61d..83b482810e2e6d76b307a4f97df1a7c0d1c168e5 100644 (file)
--- a/brc2
+++ b/brc2
@@ -274,7 +274,7 @@ jrun() { # journal run. run args, log to journal, tail and grep the journal.
   # Note, an alternative without systemd would be something like ts.
   # Note, I tried using systemd-cat, but this seems obviously better,
   # and that seemed to have a problem exiting during a systemctl daemon-reload
-  local cmd_name ret jr_pid
+  local cmd_name ret jr_pid s
   ret=0
   cmd_name=${1##*/}
   cmd=$1
@@ -289,7 +289,7 @@ jrun() { # journal run. run args, log to journal, tail and grep the journal.
   # systemd-cat. i dont know any way to trap ctrl-c and still run the
   # normal action for it. There might be a way, unsure.
   jr_pid=$!
-  systemd-run --unit "$cmd_name" --wait --collect "$cmd" "${@:2}" || ret=$
+  s systemd-run --unit "$cmd_name" --wait --collect "$cmd" "${@:2}" || ret=$?
   # This justs lets the journal output its last line
   # before the prompt comes up.
   sleep .5
index 0635b1716a85dc0ba7d4f4317358502c666894f2..dc3ccf3a9b85008d88a145784142a273875e8cf4 100755 (executable)
@@ -349,8 +349,6 @@ Package: profile-sync-daemon
 Pin: release n=focal,o=Ubuntu
 Pin-Priority: 500
 EOF
-    seru enable psd
-    seru sart psd
 
     f=/etc/apt/sources.list.d/focal.list
     t=$(mktemp)
@@ -703,6 +701,10 @@ sudo update-alternatives --set x-www-browser /usr/bin/abrowser
 pi ${pall[@]} $(apt-cache search ruby[.0-9]+-doc| awk '{print $1}') $($src/distro-pkgs)
 
 
+seru enable psd
+seru start psd
+
+
 # website is dead june 14 2019. back in october, but meh
 sudo rm -fv /etc/apt/sources.list.d/iridium-browser.list
 # case $distro in
index 93bd990d4ac6b9bb253757fd54c267cf2deb0505..ffb604b5c04833ad7780e0e8761114ab373bc76c 100755 (executable)
@@ -1868,8 +1868,6 @@ EOF
     cat >>/etc/exim4/conf.d/main/000_local <<EOF
 # recommended if dns is expected to work
 CHECK_RCPT_VERIFY_SENDER = true
-# These seem like a good idea and have stoped spammers on my server
-CHECK_DATA_VERIFY_HEADER_SENDER = true
 # default config comment says: If you enable this, you might reject legitimate mail,
 # but eggs has had this a long time, so that seems unlikely.
 CHECK_DATA_VERIFY_HEADER_SYNTAX = true
@@ -2286,6 +2284,8 @@ esac
 case $HOSTNAME in
   $MAIL_HOST|bk|je)
     # note: cronjob "ian" also does some important monitoring
+    # todo: this will sometimes cause an alert because mailtest-check will run
+    # before we have setup network namespace and spamassassin
     cat >/etc/cron.d/mailtest <<EOF
 SHELL=/bin/bash
 PATH=/usr/bin:/bin:/usr/local/bin
@@ -2375,7 +2375,7 @@ done
 # Root and postmaster mail recipient:
 
 
-exit 0
+exit 0
 :
 
 # Local Variables:
index cdbeddc0a58c6c36eb726f0bb45fba5a2a4fa1ce..c7cf26523bffaa66d446d11d98ead114c8bdb5b5 100644 (file)
@@ -179,4 +179,4 @@ fi
 
 m $new_shell /a/exe/primary-setup localhost
 
-exit 0
+exit 0