minor improvements
authorIan Kelling <iank@fsf.org>
Fri, 10 May 2019 17:53:06 +0000 (13:53 -0400)
committerIan Kelling <iank@fsf.org>
Fri, 10 May 2019 17:53:06 +0000 (13:53 -0400)
brc
btrbk-run
filesystem/etc/cron.d/ian [changed mode: 0755->0644]
mail-setup
pkgs
switch-mail-host

diff --git a/brc b/brc
index 1c93c8adbcf4fbee67b23c573428477c4bc92259..c243706a73660932f6994e4e84214cdf5c7d282f 100644 (file)
--- a/brc
+++ b/brc
@@ -167,6 +167,7 @@ C_DEFAULT_DIR=/a
 # https://superuser.com/questions/366930/how-do-i-get-the-git-pager-to-clean-up-screen-output-after-exit
 # and reading the man
 export LESS=RXi
+export SYSTEMD_LESS=$LESS
 
 # * include files
 for _x in /a/bin/distro-functions/src/* /a/bin/!(githtml)/*-function?(s); do
@@ -340,6 +341,7 @@ b() {
 }
 
 bbk() {
+  c /
   # run latest
   install-my-scripts
   btrbk-run "$@"
@@ -1085,6 +1087,8 @@ ipdrop() {
   s iptables -A INPUT -s $1 -j DROP
 }
 
+jr() { journalctl "$@"; }
+
 net-dev-info() {
   e "lspci -nnk|gr -iA2 net"
   lspci -nnk|gr -iA2 net
@@ -1484,7 +1488,7 @@ scssl() {
 }
 
 ser() {
-  local s; [[ $EUID != 0 ]] && s=sudo
+  local s; [[ $EUID != 0 ]] && s=s
   if type -p systemctl &>/dev/null; then
     $s systemctl $1 $2
   else
index f0f16bda44f3013bc48ec4ed10c1c1955cbd8d9c..59631fdd75efbad9f54733a08b22975e5b5712c8 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -105,7 +105,8 @@ if ! $pull_reexec && [[ $source ]]; then
   if diff -q $tmpf $BASH_SOURCE; then
     echo "$0: found newer version on host $source. reexecing"
     install -T $tmpf /usr/local/bin/btrbk-run
-    /usr/local/bin/btrbk-run --pull-reexec "${orig_args[@]}"
+    m /usr/local/bin/btrbk-run --pull-reexec "${orig_args[@]}"
+    exit
   fi
 fi
 
old mode 100755 (executable)
new mode 100644 (file)
index 53b357a..343c25b
@@ -1,2 +1,2 @@
 SHELL=/bin/bash
-*/10 * * * *   iank /a/exe/rootsshsync 2>&1 | /usr/local/bin/log-once -15
+*/10 * * * *   iank /a/exe/rootsshsync 2>&1 | /usr/local/bin/log-once -15 rootsshsync
\ No newline at end of file
index c1db3c7fc8bbd9697cfc3b9bf29c83ed7667d356..babbbd8dc3668c428167f8d3adae9d17bc6aa0a8 100755 (executable)
@@ -642,7 +642,8 @@ EOF
     # MAIN_HARDCODE_PRIMARY_HOSTNAME might mess up the
     # smarthost config type, not sure. all other settings
     # would be unused in that config type.
-    cat >/etc/exim4/conf.d/main/000_localmacros <<EOF
+    rm -f /etc/exim4/conf.d/main/000_localmacros # old filename
+    cat >/etc/exim4/conf.d/main/000_local <<EOF
 # i don't have ipv6 setup for my vpn tunnel yet.
 disable_ipv6 = true
 
diff --git a/pkgs b/pkgs
index 602ee29d5b0ad5b83b90ca23f32f949b0d7d1213..d52a3f2729c145a30bfba45852076954b8069594 100644 (file)
--- a/pkgs
+++ b/pkgs
@@ -51,6 +51,8 @@ p3=(
 # libterm-readkey-perl for rt cli tool
 # fonts pkgs are an attempt to get less block characters
 # gnat-5 & ccache is for coreboot
+# python-dnspython is needed by some ansible module and 3 is
+# for when ansible becomes py3.
 p4=(
   adb
   ansible
@@ -79,6 +81,8 @@ p4=(
   dirmngr
   dnsutils
   dnsmasq
+  python-dnspython
+  python3-dnspython
   dtrx
   duplicity
   eclipse
index a06e1baec6c5abd9bd7ab3bf201fbe1e1524d9f1..288211264ee5e377c2aed0b523d29f33fb52809a 100755 (executable)
@@ -89,14 +89,8 @@ source /a/bin/bash_unpublished/source-semi-priv
 # todo: setup vpn so this is all taken care of.
 if ! $update_wrt; then
   wrt_shell=:
-elif $at_home; then
-  wrt_shell="ssh wrt.b8.nz"
 else
-  if [[ $old_host == iank.vpn.office.fsf.org || $new_host == iank.vpn.office.fsf.org ]]; then
-    wrt_shell="ssh iank.vpn.office.fsf.org ssh wrt.b8.nz"
-  else
-    wrt_shell="ssh $HOME_DOMAIN ssh wrt.b8.nz"
-  fi
+  wrt_shell="ssh wrt.b8.nz"
 fi
 
 btrbk_test="systemctl is-active btrbk.service"