summaryrefslogtreecommitdiffstats
path: root/php.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-12-16 13:34:03 +0100
committerRemi Collet <fedora@famillecollet.com>2015-12-16 13:34:03 +0100
commite6fe6e0725b27bb13cde10907e27c0a8c68efe5a (patch)
tree3bc582e1307370f978113cdd03bf756d09664a99 /php.spec
parente6cbc0049f7be3a4f9746dbfbd8ce7bcc2341ba2 (diff)
fpm: fix socket path
Diffstat (limited to 'php.spec')
-rw-r--r--php.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/php.spec b/php.spec
index fce546c..cd2b3d9 100644
--- a/php.spec
+++ b/php.spec
@@ -1392,11 +1392,11 @@ sed -e '/php-fpm.pid/s:/var:%{_localstatedir}:' \
%if %{with_httpd2410}
# Switch to UDS
# FPM
-sed -e 's@127.0.0.1:9000@/run/php-fpm/www.sock@' \
+sed -e 's@127.0.0.1:9000@%{_localstatedir}/run/php-fpm/www.sock@' \
-e 's@^;listen.acl_users@listen.acl_users@' \
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
# Apache
-sed -e 's@proxy:fcgi://127.0.0.1:9000@proxy:unix:/run/php-fpm/www.sock|fcgi://localhost@' \
+sed -e 's@proxy:fcgi://127.0.0.1:9000@proxy:unix:%{_localstatedir}/run/php-fpm/www.sock|fcgi://localhost@' \
-i $RPM_BUILD_ROOT%{_httpd_confdir}/%{name}.conf
%endif