Reduce search pattern size and complexity

This commit is contained in:
Lyrex 2017-09-05 20:52:58 +02:00
parent aac93cd6f8
commit aee35549f5
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ sed -i 's/readonly //g' /opt/pihole/webpage.sh
if [[ "$IMAGE" == 'alpine' ]] ; then
cp /etc/.pihole/advanced/pihole.cron /etc/crontabs/pihole
# Fix hostname bug on block page
sed -i "s/\(\$_SERVER\['SERVER_NAME'\]\)/\(\$_SERVER\['HTTP_HOST'\]\)/" /var/www/html/pihole/index.php
# Fix hostname bug on block page
sed -i "s/\$_SERVER\['SERVER_NAME'\]/\$_SERVER\['HTTP_HOST'\]/" /var/www/html/pihole/index.php
fi