new host related fixes
authorIan Kelling <ian@iankelling.org>
Wed, 24 Apr 2024 03:32:34 +0000 (23:32 -0400)
committerIan Kelling <ian@iankelling.org>
Wed, 24 Apr 2024 03:32:34 +0000 (23:32 -0400)
brc2
distro-begin
distro-end
dsremote
mail-backup-clean
pkgs

diff --git a/brc2 b/brc2
index 33384bcdd0a962c90a19242bbcfabf1aa3e4a4c3..2795e2e2459941ad5b7df7a07554400fc28f7049 100644 (file)
--- a/brc2
+++ b/brc2
@@ -4480,7 +4480,7 @@ hssh-update() {
   case $HOSTNAME in
     sy|kd)
       hosts=(
-        kd x3.office.fsf.org syw
+        kd.b8.nz x3.office.fsf.org syw x2.b8.nz
       )
       ;;
     x3)
index 4638980351caca0c5fff05a87c99efe102201a67..8da3f162ac3e9ae66d9d3a310e324c8e96537082 100755 (executable)
@@ -55,7 +55,7 @@
 
 
 ### make ssh interactive shell run better. for when running line interactively line by line
-sudo bash -c '/a/exe/ssh-emacs-setup'
+sudo bash -c '/a/exe/ssh-emacs-setup' || exit $?
 
 ##### setup error handling
 interactive=true  # set this to false to force set -x
index 77cfa4ba89782d55ec1fa1b8497994c24531f93f..e9b797ae28a78851549c70ab681f4c6432a5fb20 100755 (executable)
@@ -167,8 +167,6 @@ EOF
       t=$(mktemp)
       case $n in
         bookworm)
-          cat >$t <<'EOF'
-EOF
           cat >$t <<EOF
 deb http://deb.debian.org/debian bookworm main
 deb-src http://deb.debian.org/debian bookworm main
@@ -194,11 +192,13 @@ EOF
     if $doupdate; then
       tmpdir=$(mktemp -d)
       cd $tmpdir
-      # otherwise we get a warning message:
-      # W: Download is performed unsandboxed as root as file '/tmp/tmp.UwxbPFG3CZ/debian-archive-keyring_2021.1.1+deb11u1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
-      chmod 775 .
-      p download debian-archive-keyring
-      s dpkg -i ./debian-archive-keyring*
+      # cant apt get the keyring without doing an update, can't update
+      # without the keyring, this is a stupid chicken and egg problem
+      # that apt should have some feature to solve, but doesn't as far
+      # as I know.
+      f=debian-archive-keyring_2023.3+deb12u1_all.deb
+      wget http://ftp.debian.org/debian/pool/main/d/debian-archive-keyring/$f
+      dpkg -i $f
       p update
       cd -
       rm -rf $tmpdir
index 65e27c0576f550c56acbe190214612297f243ab6..31d85e1f39f61d6b0c85e515d36519dace3cd8c8 100755 (executable)
--- a/dsremote
+++ b/dsremote
@@ -35,5 +35,4 @@ if [[ ! $host || $host == -h ]]; then
 fi
 
 bbk -t $host
-ssh $host /a/bin/distro-setup/distro-begin
-ssh $host /a/bin/distro-setup/distro-end
+ssh -t $host "/a/bin/distro-setup/distro-begin && /a/bin/distro-setup/distro-end"
index 9f6b14b0d215d5aec8038396a8626eabe1a9817e..210173cc96d621163955d9411f9099ef6c435087 100755 (executable)
@@ -38,4 +38,8 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${P
 # time=$(( $(date -d $(sed -r  's/(.{4})(..)(.{5})(..)(.*)/\1-\2-\3:\4:\5/' <<<$last_snap_date) +%s) -1 ))
 # find /bu/md -type f \! -newermt @$time -delete
 
+if [[ ! -d /bu/md ]]; then
+  exit 0
+fi
+
 find /bu/md -type f -mtime +100 -delete
diff --git a/pkgs b/pkgs
index e55f92c090e02a1489cbc204a2082862307ade96..ee3efb963e10cd64afdc3491aaad5c5f1f0e264b 100644 (file)
--- a/pkgs
+++ b/pkgs
@@ -136,7 +136,8 @@ p3=(
   evince
   exim4-doc-html
   exfat-fuse
-  exfat-utils
+  # was exfat-utils before aramo
+  exfatprogs
   expect
   # for ftp upload dejagnu test
   libdate-manip-perl libemail-messageid-perl