You bear some responsibility when you share scripts.
I get that everything is essentially “use at your own risk”, but the opening post comes off as “here are some handy scripts for ZFS and TrueNAS”.
Had you put a disclaimer (preferably in bold) from the start, you wouldn’t be met with this level of criticism.
Secondly, scripts are much different than guides (which use standard commands and APIs). If you’re sharing a script, you need to more seriously take into consideration the caveats and risks involved. Whereas, a guide is meant to invite the user to “try this out on your own” without relying on straight-up copy+paste or “run this script on your system, maybe edit some stuff, whatever”.
Here’s an example from yours truly.
I don’t just provide a script that will use mbuffer
+ netcat
to bypass SSH for low-powered systems. I walk the user through it with enough information for them to hopefully “learn” something on their own time.
If I had just provided a script for weak-cpu-replications.sh
, you can bet I would write in big bold letters warning the user not to run the script, and to review it heavily; and I would also share with them how/why I took the approach I did.