Commit 91049ccf authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Dollar signs must be escaped in Makefile

parent 0c2db493
......@@ -37,9 +37,9 @@ all: httpd-service httpd-logrotate
cat /etc/httpd/httpd.conf | sed -n '/^# DirectoryIndex:/,/^# The following/{ /^# The following.*$$/d; p; }' > /etc/httpd/conf/DirectoryIndex.conf
sed '/^# DirectoryIndex:/,/^# The following/{/^# The following/!d}' -i /etc/httpd/httpd.conf
@echo "IncludeOptional conf/*.conf" >> /etc/httpd/httpd.conf
sed 's/^\s*CustomLog\(.*\)common$/ # CustomLog\1common/g' -i /etc/httpd/httpd.conf
sed '/^\s*LogFormat\(.*\)combined$/a \ LogFormat "%{X-Forwarded-For}i %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" proxy' -i /etc/httpd/httpd.conf
sed '/^\s*#CustomLog.*combined$/a \ SetEnvIf X-Forwarded-For "^.*\\..*\\..*\\..*" forwarded\n CustomLog "/var/log/httpd/access.log" combined env=!forwarded\n CustomLog "/var/log/httpd/access.log" proxy env=forwarded' -i /etc/httpd/httpd.conf
sed 's/^\s*CustomLog\(.*\)common$$/ # CustomLog\1common/g' -i /etc/httpd/httpd.conf
sed '/^\s*LogFormat\(.*\)combined$$/a \ LogFormat "%{X-Forwarded-For}i %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" proxy' -i /etc/httpd/httpd.conf
sed '/^\s*#CustomLog.*combined$$/a \ SetEnvIf X-Forwarded-For "^.*\\..*\\..*\\..*" forwarded\n CustomLog "/var/log/httpd/access.log" combined env=!forwarded\n CustomLog "/var/log/httpd/access.log" proxy env=forwarded' -i /etc/httpd/httpd.conf
@echo "d /run/httpd 755 root root -" > /usr/lib/tmpfiles.d/httpd.conf
@echo "$$HTTPD_LOGROTATE" > /etc/logrotate.d/httpd
@echo "$$HTTPD_SERVICE" > /lib/systemd/system/httpd.service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment