Import Exim configuration from bash
It's a pain to configure new cPanel servers as everything has to be done from scratch. I'm currently creating a bash script that installs cPanel along with all the software we're using.
Various configuration files (like csf configuration and EA4 profiles) are cloned from git, but I was wondering what the best approach would be for the Exim configuration.
What I'm thinking is this:
- A change is made to the Exim configuration
- I upload the changes of /etc/exim.conf and /etc/exim.conf.local to git
- Whenever we setup a new server, the bash script gets the newest files from git and copies them to /etc
- Restart Exim
Please sign in to leave a comment.
Comments
0 comments