jorgedlcruz / zimbra-automated-installation

GNU General Public License v2.0
24 stars 37 forks source link

Wrote new universal installer with lots of cool features #3

Closed meramsey closed 3 years ago

meramsey commented 3 years ago

Wrote new universal installer with lots of cool features. certbot lets encryption option csf firewall option zextra install option

I restructured stuff in functions so it will be easy to maintain.

Command line arguments are auto-generated and able to be updated by argbash at any time to add or adjust options defaults etc.

argbash -o ZimbraEasyInstall.sh ZimbraEasyInstall.sh

adding a timezone or whatever option would be as easy as adding an additional line like the below into the argbash block and running the above command to update the cli args parsing

# ARG_OPTIONAL_SINGLE([timezone],[t],[Timezone to set the server to user (optional)],[UTC])

Could then add a function which then applies that timezone if set via the below or something

timedatectl set-timezone America/Detroit

There is a lot more potential here just ran out of steam and wanted to share this upstream as your script was handy resource been wanting to script for this awhile and just stumbled on this repo and was easy to get this updated. :)