[Buildroot] [PATCH 6/6] php: fpm: remove sample status page

Floris Bos bos at je-eigen-domein.nl
Mon May 18 19:52:04 UTC 2015


php-fpm installs a sample status page to $datadir/fpm/status.html
It is not of any use in that directory, so remove it from target.
If someone wants to use it, he can copy it to webroot manually.

Signed-off-by: Floris Bos <bos at je-eigen-domein.nl>
---
 package/php/php.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/php/php.mk b/package/php/php.mk
index 2fcf783..af90b03 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -276,6 +276,8 @@ define PHP_INSTALL_FPM_CONF
 	$(INSTALL) -D -m 0644 package/php/php-fpm.conf \
 		$(TARGET_DIR)/etc/php-fpm.conf
 	rm -f $(TARGET_DIR)/etc/php-fpm.conf.default
+	# remove unused sample status page /usr/php/php/fpm/status.html
+	rm -rf $(TARGET_DIR)/usr/php
 endef
 
 PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FPM_CONF
-- 
2.1.4



More information about the buildroot mailing list