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 01:18 UTC

Return to Bug #74138 | Download this patch
This patch is obsolete

Obsoleted by patches:

This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: coenraad@wish.org.za

+++ sapi/fpm/Makefile.frag	2017-02-20 20:15:56.231742000 -0500
@@ -10,10 +10,12 @@
 	@$(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 || :
-	@$(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 \
+		@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 || :; \
+	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 00:01:33 2024 UTC