script to replace modsec2.conf after easyapache
which script hook would be best to copy my custom modsec2.conf file when easy apache runs.
should I use the script 'posteasyapache' or 'before_httpd_restart_tests' ?
#!/bin/sh
cp -f /root/config_backup/modsec2.conf /usr/local/apache/conf/modsec2.conf
should I use the script 'posteasyapache' or 'before_httpd_restart_tests' ?
-
Either one of those should work just fine IMHO. It just depends on whether you want it to run before the Apache tests during EasyApache or after EasyApache is completely done. 0 -
Thanks Michael, Been thinking . . . wouldn't posteasyapache be too late as apache has already restarted? so I'm thinking before_ or after_httpd_restart_tests 0 -
I know that the LiteSpeed hook to build a matching PHP uses the before_httpd_restart_tests last I looked - so it's probably not a bad place to do it. 0
Please sign in to leave a comment.
Comments
3 comments