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 <danomimanchego123@gmail.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Tested-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b59567b38e
commit
f6d1d1518c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user