Chris Koeritz [Sun, 9 Mar 2025 20:26:12 +0000 (20:26 +0000)]
revised to add --ssl flag
saw my backups starting to be empty, and found that this needs a --ssl
flag to be happy, except that before i made the change, the backups had
started working again. not sure wtf, except maybe i installed a missing
bit last time i was fuggling around with this stuff?
Chris Koeritz [Fri, 7 Mar 2025 21:30:27 +0000 (21:30 +0000)]
fixed sanitized username again...
...so it doesn't think it can reset USER variable if it's broken.
also fixed safedel to not loudly complain if its attempted chmod
doesn't work right, which will always happen when, for example, the
www-data user is using feisty meow code, but it cannot chmod the linked
customize directory since that's linked to the real feisty meow
code which www-data has no perms on.
Chris Koeritz [Fri, 7 Mar 2025 20:50:08 +0000 (20:50 +0000)]
bandaids for sanitize_username
making sure this should never produce an empty string as the sanitized
username, something we wanted to be sure about after seeing some really
odd log file names for our www-data user.
Fred T. Hamster [Fri, 31 Jan 2025 16:13:26 +0000 (11:13 -0500)]
removed reference to CLOUD_BASE in variables
need to figure out a nicer way of using CLOUD_BASE
in scripts like move spams, so there can be a generalized
thing that anyone could use, instead of it depending on my specific cloud
structure.
Fred Hamster [Mon, 16 Dec 2024 23:41:15 +0000 (18:41 -0500)]
super nice approach to doing a bunch of machines
uses the host strider, but manages the set pretty well itself
and generates the commands it needs to run.
ps: the approach where it saves the script file to a temp file? this is how we can do functions too.
Fred Hamster [Mon, 16 Dec 2024 21:06:29 +0000 (16:06 -0500)]
moving to sanitized user
don't want to use the bare USER variable any more, since we have seen that including an email domain (e.g. blah@flork.com instead of just blah).
so these changes should use a sanitized version without the email portion.
Fred Hamster [Mon, 16 Dec 2024 18:13:31 +0000 (13:13 -0500)]
reverted to proper shebang
using the "newfangled" env method for finding bash, since we have now seen firsthand that /bin/bash is no longer reliable for all the platforms we want to work on (if it ever was)...
Fred Hamster [Sat, 14 Dec 2024 18:50:53 +0000 (13:50 -0500)]
updated to not fail if cannot enumerate adapters
macos is evading us, but we don't want the failure to enumerate to become a test failure.
it's a severe lack in the code, sure, but nothing is dependent on it yet...
Fred T. Hamster [Sat, 7 Dec 2024 00:29:05 +0000 (19:29 -0500)]
welcome most excellent host strider script
this script isolates the annoying pieces of running something remotely. it takes a script file and a list of hosts, and runs the script remotely.
there are a lot of painful issues to iron out, and this version seems to have most of them starched up now.
Fred T. Hamster [Sat, 7 Dec 2024 00:03:26 +0000 (19:03 -0500)]
cleaned up stty noise
made stty call not pollute stdout.
generalized inventory script a little, so it doesn't expect our scripts variable, but still does rely on FEISTY_MEOW_APEX
Fred T. Hamster [Fri, 6 Dec 2024 22:22:26 +0000 (17:22 -0500)]
added a pipe status combiner method
this pushes together as many pipe statuses as requested, to yield one return value.
so it makes it easier to catch and respond to failures at different places in the pipe.
sets the exit value and is guaranteed not to go over the max value of 255.
Fred T. Hamster [Fri, 6 Dec 2024 20:25:51 +0000 (15:25 -0500)]
fixed terminal titler
it was hosing up non-interactive bash sessions due to trying to echo out in command line friendly way. bahhh, bad idea.
fix now does not interfere in non-interactive sessions by checking special bash magic variables. we needed to add that,
even beyond all the original checks on terminal type and prompts, because those were all coming in indicating that it
was an interactive shell when it was not. but the magic check for that 'i' being present in the "$-" variable (yes,
that's a dollar and a dash) did the trick.
Fred T. Hamster [Thu, 5 Dec 2024 14:52:49 +0000 (09:52 -0500)]
fixed error on removing sort file too early
that file i cleaned up was actually needed across function calls. did find the place where an error could leave the file lying around, and fixed that instead.
Fred T. Hamster [Thu, 5 Dec 2024 01:22:56 +0000 (20:22 -0500)]
fixed separator method to support character choice
separator now accepts a count and a character string, so like:
$ sep 4 "arf-"
generates:
arf-arf-arf-arf-
nice!
and fixed 's' alias to use separator function instead of being a hard-coded line of pound signs.
Fred T. Hamster [Thu, 21 Nov 2024 01:59:51 +0000 (20:59 -0500)]
need better behavior in picking photo dirs
mushing this into better shape gradually. switched f76 to linux from windows once saw that i could, so now the save dir is different.
could use new save dir as a standard! it makes more sense to link directly to photos, than to have to both link to a folder and then find the photos.