case $HOSTNAME in
sy|kd)
hosts=(
- kd x3.office.fsf.org syw
+ kd.b8.nz x3.office.fsf.org syw x2.b8.nz
)
;;
x3)
### 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
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
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
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"
# 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
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