This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Requirements: etckeeper, colordiff | |
| #Script based on https://gist.github.com/jlazic/e65f5bda141ffaed5640 by Josip Lazić | |
| #Article: https://lazic.info/josip/post/splitting-haproxy-config/ | |
| #This script concatenates multiple files of haproxy configuration into | |
| #one file, and than checks if monolithic config contains errors. If everything is | |
| #OK with new config script will write new config to $CURRENTCFG and reload haproxy | |
| #Also, script will commit changes to etckeeper, if you don't use etckeeper you |