Skip to contentSkip to conversation

nginx: fix nginx.old clean-up

PATCH New Danomi Manchego 3 participants 3 messages Jun 25, 2015 – Jun 28, 2015

lore
Share & tools
lore
#0 lore raw

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.

---
 package/nginx/nginx.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/nginx/nginx.mk +1 -1
index 90ebbcc..502bc44 100644
@@ -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
#2 lore raw

PATCH 1/1 nginx: fix nginx.old clean-up

In reply to Danomi Manchego

Dear 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/bin never works. Fix path, and also use "$(RM)" instead of "-$(RM)", as "rm -f" never fails.

---
 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