Sensible Defaults and or Param Flags


I’m currently creating a script that will setup Seafile Server (in this case with MySQL, but that’s largely irrelevant). I’m looking for a way to complete the setup script without having to ask the user (me, etc) for information regarding each option. I’d like to be able to pass in the values programmatically. Does anyone know how to do this without reverse engineering the setup script?

More specifically, I’m trying to create a TrueNAS Plugin from this but it’s way too dependent on the installer’s input at the moment.

Ultimately I’m trying to switch to Seafile from NextCloud for various reasons, but I do not want to have to remember how to manually setup the software each time.

Any options or thoughts on something like this?