Skip to content

Instantly share code, notes, and snippets.

@schlomo
Created May 2, 2014 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlomo/b9bed7f4f857c140cbd2 to your computer and use it in GitHub Desktop.
Save schlomo/b9bed7f4f857c140cbd2 to your computer and use it in GitHub Desktop.
Replace httpd.conf with list of includes
if ! echo '# HTTPD conf framework. Will be overwritten to this content on each install of the rpm package!!!
# This file is managed by %{name}-%{version}-%{release}
ServerRoot "/etc/httpd"
Include conf/basic/*.conf
Include conf/main/*.conf
Include conf/other/*.conf
' >/etc/httpd/conf/httpd.conf ; then
logger -p user.err -s -t %name -- "ERROR: Could not replace content of '/etc/httpd/conf/httpd.conf'"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment