diff --git a/package/nginx/nginx.mk b/package/nginx/nginx.mk index 90ebbcc989..502bc44fe3 100644 --- a/package/nginx/nginx.mk +++ b/package/nginx/nginx.mk @@ -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