X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=e392cf5c0a56d56b882bdb126aa7ff5c01185428;hb=802e885e3e7fa3857f8bc4f54c261d5ca76f2454;hp=ddfe816e236aff742d1b75e95f6c8c10d400f0ad;hpb=b18dade73dedfe69aa741f8417947d83c4208f2d;p=distro-setup diff --git a/brc2 b/brc2 index ddfe816..e392cf5 100644 --- a/brc2 +++ b/brc2 @@ -381,6 +381,22 @@ bigclock() { nnn() { /a/opt/nnn -H "$@"; } +locat() { # log-once cat + local files + ngset + files=(/var/local/cron-errors/* /home/iank/cron-errors/* /sysd-mail-once-state/*) + case ${#files[@]} in + 0) : ;; + 1) + echo ${files[0]} + head ${files[0]} + ;; + *) + head ${files[@]} + ;; + esac + ngreset +} # duplicated somewhat below. jrun() { # journal run. run args, log to journal, tail and grep the journal. @@ -486,24 +502,23 @@ EOF done } bindpushb8() { - dsign iankelling.org expertpathologyreview.com zroe.org amnimal.ninja lipush for h in li bk; do m sl $h <<'EOF' source ~/.bashrc -m dnsup m dnsb8 EOF done } dnsup() { - conflink + conflink -f m ser reload bind9 } dnsb8() { local f=/var/lib/bind/db.b8.nz ser stop bind9 + sleep 1 sudo rm -fv $f.jnl sudo install -m 644 -o bind -g bind /p/c/machine_specific/vps/bind-initial/db.b8.nz $f ser restart bind9 @@ -1059,8 +1074,8 @@ Address = 10.8.0.$ipsuf/24 PostUp = ping -c1 10.8.0.1 ||: [Peer] -# li -PublicKey = zePGl7LoS3iv6ziTI/k8BMh4L3iL3K2t9xJheMR4hQA= +# li. called wgmail on that server +PublicKey = CTFsje45qLAU44AbX71Vo+xFJ6rt7Cu6+vdMGyWjBjU= AllowedIPs = 10.8.0.0/24 Endpoint = 72.14.176.105:1194 PersistentKeepalive = 25 @@ -1068,7 +1083,7 @@ EOF umask $umask_orig # old approach. systemd seems to work fine and cleaner. rm -f ../network/interfaces.d/wghole - cedit -q $host /p/c/machine_specific/li/filesystem/etc/wireguard/wghole.conf <