#!/bin/sh # ASL HOOK perl -p -i -e 's["UniqueId.*]["UniqueId": 1]g' /var/cpanel/easy/apache/profile/_main.yaml perl -p -i -e 's["Cpanel::Easy::ModSec.*]["Cpanel::Easy::ModSec": 0]g' /var/cpanel/easy/apache/profile/_main.yaml # Prepare environment (mod_sed disappears, the others do not) if [ -f /etc/httpd/conf.d/000_mod_sed.conf ]; then rm -f /etc/httpd/conf.d/000_mod_sed.conf fi # Removing other configs for safety sake if [ -f /etc/httpd/conf.d/00_mod_security.conf ]; then cp -f /dev/null /etc/httpd/conf.d/00_mod_security.conf fi if [ -f /etc/httpd/conf.d/mod_evasive.conf ]; then rm -f /etc/httpd/conf.d/mod_evasive.conf fi if [ ! -x /var/asl/data/templates/template-cpanel-apache-hook ]; then /bin/chmod +x /var/asl/data/templates/template-cpanel-apache-hook fi