php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #74138
Patch no-clobber-php-fpm-conf revision 2017-02-21 02:00 UTC by coenraad at wish dot org dot za
revision 2017-02-21 01:58 UTC by coenraad at wish dot org dot za
revision 2017-02-21 01:18 UTC by coenraad at wish dot org dot za
revision 2017-02-21 01:17 UTC by coenraad at wish dot org dot za
revision 2017-02-21 01:14 UTC by coenraad at wish dot org dot za
revision 2017-02-21 00:51 UTC by coenraad at wish dot org dot za

Patch no-clobber-php-fpm-conf for *Compile Issues Bug #74138

Patch version 2017-02-21 02:00 UTC

Return to Bug #74138 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2017-02-21 02:00 UTC | 2017-02-21 01:58 UTC | 2017-02-21 01:18 UTC | 2017-02-21 01:17 UTC | 2017-02-21 01:14 UTC | 2017-02-21 00:51 UTC

Developer: coenraad@wish.org.za


 +++ Makefile	2017-02-20 19:45:17.423742000 -0500
 @@ -306,8 +306,10 @@
 +++ sapi/fpm/Makefile.frag	2017-02-20 20:57:19.887742000 -0500
 @@ -10,10 +10,14 @@
  	@$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run
  	@$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
   
  	@echo "Installing PHP FPM config:        $(INSTALL_ROOT)$(sysconfdir)/" && \
  	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d || :
 -	@echo "Installing PHP FPM config:        $(INSTALL_ROOT)$(sysconfdir)/" && \
 -	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d || :
  -	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
  -	@$(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default || :
 +	@if test ! -f "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf"; then \
 +		@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :; \
 +		@$(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default || :; \
 +	fi
 +        @if test -f "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf"; then \
 +                echo "Installing PHP FPM defconfig:     skipping"; \
 +        else \
 +                echo "Installing PHP FPM defconfig:     $(INSTALL_ROOT)$(sysconfdir)/" && \
 +                $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d; \
 +                $(INSTALL_DATA) sapi/fpm/php-fpm.conf "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default"; \
 +                $(INSTALL_DATA) sapi/fpm/www.conf "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default"; \
 +        fi
   
   	@echo "Installing PHP FPM man page:      $(INSTALL_ROOT)$(mandir)/man8/"
   	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 02:01:35 2024 UTC