nginx: fix nginx.old clean-up
PATCH 1/1 nginx: fix nginx.old clean-up
The bin path for nginx is configured for /usr/sbin, so deleting the nginx.old back-up from /usr/bin never works. Fix path, and also use "$(RM)" instead of "-$(RM)", as "rm -f" never fails.
Signed-off-by Danomi Manchego <[email protected]>
--- package/nginx/nginx.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nginx/nginx.mk +1 -1
@@ -222,7 +222,7 @@ endef define NGINX_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install - -$(RM) $(TARGET_DIR)/usr/bin/nginx.old + $(RM) $(TARGET_DIR)/usr/sbin/nginx.old $(INSTALL) -D -m 0664 package/nginx/nginx.logrotate \ $(TARGET_DIR)/etc/logrotate.d/nginx endef
Signature · 1 line
1.9.1
PATCH 1/1 nginx: fix nginx.old clean-up
Quoted 5 lines · Danomi Manchego
The bin path for nginx is configured for
/usr/sbin, so deleting the nginx.old back-up from/usr/binnever works. Fix path, and also use "$(RM)" instead of "-$(RM)", as "rm -f" never fails.Signed-off-by Danomi Manchego <[email protected]>
Acked-by Samuel Martin <[email protected]>
Tested-by Samuel Martin <[email protected]>
Regards,
Signature · 1 line
Samuel
Thomas Petazzoni
AppliedPATCH 1/1 nginx: fix nginx.old clean-up
In reply to Danomi ManchegoDear Danomi Manchego,
Quoted 8 lines · Danomi Manchego
The bin path for nginx is configured for
/usr/sbin, so deleting the nginx.old back-up from/usr/binnever works. Fix path, and also use "$(RM)" instead of "-$(RM)", as "rm -f" never fails.Signed-off-by Danomi Manchego <[email protected]>--- package/nginx/nginx.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com