From 3126f27121caaa99903f6e24d1b570884ab91cb8 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 15 Nov 2020 17:41:29 -0500 Subject: [PATCH] various fixes --- brc2 | 6 ++--- btrbk-run | 2 +- distro-end | 25 ------------------- dynamic-ip-update | 13 +++------- .../systemd/system/openvpn-client-tr@.service | 2 +- .../system/transmission-daemon-nn.service | 19 ++++++++++++++ filesystem/etc/tr-resolv/stub-resolv.conf | 2 ++ i3-sway/common.conf | 8 +++--- install-my-scripts | 2 +- mail-setup | 20 ++++++++------- mailtest-check | 3 ++- subdir_files/.config/i3/config | 8 +++--- subdir_files/.config/sway/config | 8 +++--- system-status | 2 +- 14 files changed, 57 insertions(+), 63 deletions(-) create mode 100644 filesystem/etc/systemd/system/transmission-daemon-nn.service create mode 100644 filesystem/etc/tr-resolv/stub-resolv.conf diff --git a/brc2 b/brc2 index 5d20970..34fb1dc 100644 --- a/brc2 +++ b/brc2 @@ -175,14 +175,14 @@ anki() { acat() { ngset - hrcat /m/md/alerts/new/* + hrcat /m/md/alerts/{cur,new}/* ngreset hr; echo bk; hr ssh bk.b8.nz "shopt -s nullglob; hrcat /m/md/INBOX/new/* /m/md/INBOX/cur/*" } aclear() { ngset - rm -f /m/md/alerts/new/* + rm -f /m/md/alerts/{cur,new}/* ngreset ssh bk.b8.nz "shopt -s nullglob; rm -f /m/md/INBOX/new/* /m/md/INBOX/cur/*" system-status _ @@ -201,7 +201,7 @@ aw() { } ad() { pushd /a/bin/distro-setup/a >/dev/null - ansible-playbook site.yml + ansible-playbook site.yml "$@" popd >/dev/null } diff --git a/btrbk-run b/btrbk-run index 499ec88..7de9255 100644 --- a/btrbk-run +++ b/btrbk-run @@ -406,7 +406,7 @@ subvolume $sub target send-receive $vol/btrbk EOF fi - if (( ${#target[@]} )); then + if (( ${#targets[@]} )); then cat >>/etc/btrbk.conf <>$f <>$f <>$f <>$f </etc/exim4/conf.d/rcpt_local_acl <<'EOF' # I might add somethign later. EOF +i /etc/exim4/conf.d/local_deny_exceptions_acl <<'EOF' # This acl already exists in rcpt, this just makes it more widespread. # See the comment there for its rationale. The reason it needs to be # more widespread is that I've turned on sender verification, but cron # emails can fail sender verification since I may be in a network that # doesn't have my local dns. -i /etc/exim4/conf.d/local_deny_exceptions_acl <<'EOF' accept authenticated = * + +# i setup a local programs smtp to mail.iankelling.org, this +# skips sender verification for it. +accept + hosts = 10.173.8.1 EOF rm -fv /etc/exim4/data_local_acl # old path @@ -1853,14 +1858,13 @@ EOF # I originally set this to li.iankelling.org, but then ended up with errors when li tried to send # mail to kd, so this should basically be a name that no host has as their # canonical hostname since the actual host sits behind a nat and changes. -# Seems logical for this to be the same as mailname. MAIN_HARDCODE_PRIMARY_HOSTNAME = mail.iankelling.org +# I used this to avoid sender verification, didnt work but it still +# makes sense based on the spec. +hosts_treat_as_local = defaultnn.b8.nz EOF /a/exe/cedit defaultnn /etc/hosts <<'EOF' || [[ $? == 1 ]] -# this is just here to avoid mainlog errors, however, it doesnt seem to work -# todo: look into it more. nsswitch.conf? cached result? i dunno -# list matching forced to fail: failed to find host name for 10.173.8.1 10.173.8.1 defaultnn.b8.nz EOF ;;& @@ -1955,9 +1959,7 @@ EOF # file, so I've saved that into ./mail-notes.conf. cat >>/etc/exim4/update-exim4.conf.conf <