use find in get_template
This commit is contained in:
parent
9a64e82c48
commit
64c6b3a0b1
|
@ -57,10 +57,11 @@ get_htaccess() {
|
|||
# Find directives in non apache location. It can be configuration for
|
||||
# phpmyadmin or the default vhost template for example.
|
||||
get_template() {
|
||||
template_dirs="/etc /usr/share/scripts"
|
||||
grep -lRE '^[[:space:]]*(Order|Allow|Deny|Satisfy)[[:space:]]' \
|
||||
--exclude-dir=apache2 --exclude-dir=squid3 $template_dirs \
|
||||
|| true
|
||||
find /etc /home/evoadmin \( -path /etc/apache2 -o -path /etc/squid3 \) -prune -false \
|
||||
-o -type f -exec grep -IlE \
|
||||
'^[[:space:]]*(Order|Allow|Deny|Satisfy)[[:space:]]' {} \;
|
||||
}
|
||||
|
||||
filter_backup() {
|
||||
grep -v 'apreq.bak' || true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue